Items can be created / modified / deleted and will always keep the defined order.
You can also use v-if
to show (or not) a Tab Item.
# Dynamic
Items can be created / modified / deleted and will always keep the defined order.
You can also use v-if
to show (or not) a Tab Item.
# Position
# Icons
# Sizes
# Types
If you want a more classic style with borders add the is-boxed
type.
Or like Radio Buttons with the is-toggle
or is-toggle-rounded
type.
# Expanded
If you want the tabs to take full width, add the expanded
prop.
# Custom Headers
By adding a slot named header
you can customize the header of a tab item.
# Vertical
Name | Description | Type | Values | Default |
---|---|---|---|---|
v-model | Binding value, tab index. Passing undefined will show the first tab, null will show no tab | String, Number, Null | — | undefined |
expanded | Make tab full width | Boolean | — | false |
animated | Tabs have slide animation | Boolean | — | true |
animateInitially | Apply animation on the initial render | Boolean | — | undefined |
animation | Custom animation (transition name) | String | — | slide-next slide-prev |
type | Type/Style of the tab, optional | String | is-boxed , is-toggle | — |
size | Size of the tab, optional | String | is-small , is-medium , is-large | — |
position | Position of the tab, optional | String | is-centered , is-right | — |
vertical | Display the tabs vertically. The content will be placed at right. | Boolean | — | false |
destroy-on-hide | Destroy tabitem on hide | Boolean | — | false |
multiline | Tabs will be multilined | Boolean | — | false |
Name | Description | Type | Values | Default |
---|---|---|---|---|
label | Tab label | String | — | — |
value | Tab identifier | String | — | Vnode uid |
icon | Icon name | String | — | — |
icon-pack | Icon pack to use | String | — | mdi |
disabled | Item is disabled | Boolean | - | false |
visible | Item is visible | Boolean | - | true |
headerClass | The classes to add to the tab header | String, Array, Object | - | - |
You can use these variables to customize this component.
Name | Default |
---|---|
$tabs-focused-outline | none |
$tabs-items-focused-outline | none |
$tabs-link-focus-active-border-bottom-color | $tabs-link-active-border-bottom-color |
$tabs-link-focus-border-bottom-color | $tabs-link-hover-border-bottom-color |
$tabs-boxed-link-focus-active-background-color | $tabs-boxed-link-active-background-color |
$tabs-boxed-link-focus-background-color | $tabs-boxed-link-hover-background-color |
$tabs-boxed-link-focus-active-border-bottom-color | $tabs-boxed-link-active-border-bottom-color |
$tabs-boxed-link-focus-border-bottom-color | $tabs-boxed-link-hover-border-bottom-color |
$tabs-toggle-link-focus-active-background-color | $tabs-toggle-link-active-background-color |
$tabs-toggle-link-focus-background-color | $tabs-toggle-link-hover-background-color |
$tabs-toggle-link-focus-active-border-color | $tabs-toggle-link-active-border-color |
$tabs-toggle-link-focus-border-color | $tabs-toggle-link-hover-border-color |
This page is open source. Noticed a typo or something's unclear?