The Bulma tabs
are a straightforward navigation component that
come in a variety of versions. They only require the following structure:
- a
tabs
container
- a
<ul>
HTML element
- a list of
<li>
HTML element
<a>
HTML anchor elements for each link
The default tabs style has a single border at the bottom.
HTML
Alignment
#
To align the tabs list, use the is-centered
or
is-right
modifier on the .tabs
container:
HTML
HTML
Icons
#
You can use any of the Font Awesome
icons.
HTML
Sizes
#
You can choose between 3 additional sizes:
is-small
is-medium
and is-large
.
HTML
HTML
HTML
Styles
#
If you want a more classic style with borders, just append
the is-boxed
modifier.
HTML
If you want mutually exclusive tabs (like radio buttons where
clicking one deselects all other ones), use the
is-toggle
modifier.
HTML
If you use both is-toggle
and is-toggle-rounded
, the
first and last items will be rounded.
HTML
If you want the tabs to take up the whole width available,
use is-fullwidth
.
HTML
Combining
#
You can combine different modifiers. For example, you can
have centered boxed tabs, or
fullwidth toggle ones.
HTML
HTML
HTML
HTML
Sass and CSS variables
#
Sass Variable
|
CSS Variable
|
Value
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|