Tab

The v-tabs component is used for hiding content behind a selectable item. This can also be used as a pseudo-navigation for a page, where the tabs are links and the tab-items are the content.

API

Name
active-class
Default
'v-tabs__item--active'
Type
string

Components.Tabs.

Name
align-with-title
Default
false
Type
boolean

Components.Tabs.

Name
centered
Default
false
Type
boolean

Components.Tabs.

Name
color
Default
undefined
Type
string

コンポーネントに色を設定します。この色は、定義されている色の名前(例えばsuccesspurple)や、CSSの色指定(#033rgba(255, 0, 0, 0.5))を設定できます。

Name
dark
Default
false
Type
boolean

ダークテーマを適用します。

Name
fixed-tabs
Default
false
Type
boolean

Components.Tabs.

Name
grow
Default
false
Type
boolean

Components.Tabs.

Name
height
Default
undefined
Type
number | string

Components.Tabs.

Name
hide-slider
Default
false
Type
boolean

Components.Tabs.

Name
icons-and-text
Default
false
Type
boolean

Components.Tabs.

Name
light
Default
false
Type
boolean

ライトテーマを適用します。

Name
mandatory
Default
true
Type
boolean

Components.Tabs.

Name
max
Default
undefined
Type
number | string

Components.Tabs.

Name
mobile-break-point
Default
1264
Type
number | string

Components.Tabs.

Name
multiple
Default
false
Type
boolean

Components.Tabs.

Name
next-icon
Default
'$vuetify.icons.next'
Type
string

Components.Tabs.

Name
prev-icon
Default
'$vuetify.icons.prev'
Type
string

Components.Tabs.

Name
right
Default
false
Type
boolean

Components.Tabs.

Name
show-arrows
Default
false
Type
boolean

Components.Tabs.

Name
slider-color
Default
'accent'
Type
string

Components.Tabs.

Name
value
Default
undefined
Type
number | string

Components.Tabs.

Examples

Fixed tabs

The fixed-tabs prop sets a higher minimum width and applies a new maximum width to v-tabs-items. On desktop screens, the tab items will be centered within the v-tabs component and switch to evenly fill on mobile.

Right aligned tabs

The right prop aligns the tabs to the right

Content

Tabs are not the only thing you can put inside the v-tabs component. In this example we've also added a toolbar.

Here is another example of additional content inside the v-tabs component.

Icons and text

By using the icons-and-text prop you can add icons to each tab item.

Desktop tabs

Align tabs with toolbar title

Make v-tabs lined up with the v-toolbar-title component (v-toolbar-side-icon or v-btn must be used in v-toolbar). May not work if the tab text is wrapped.

Grow

The grow prop will make the tab items take up all available space.

With menu

You can use a menu to hold additional tabs, swapping them out on the fly

Pagination

If the tab items overflow their container, pagination controls will appear.

Custom icons

prev-icon and next-icon can be used for applying custom pagination icons.

Edit this page | language on Github
Vuetify 3 is now available!The latest version of Vuetify is now available!
Learn about Vuetify 3's new features and functionality for modern Vue applications
Start exploringExplore