Tabs

Switching between tabs will fade-in the content associated to the selected tab. Here are some things to keep in mind:

  • A specific tab can be opened by default using the v-model directive
  • You must to assign a tab name to the <ITab> components
  • You must reference the chosen tab name using the for property of the <ITabTitle> components

When you have a large number of tabs, the tabs header will scroll horizontally.

Stretch Header

You can have a full width tabs header using the stretch property. Make sure you use it only when having a small number of tabs.

Color Variants

Inkline includes basic predefined tabs styles that you can use within your application. You can apply a style using the color property.

Size Variants

You're able to use the size property to control the size of your tabs, using one of the available sizes: sm, md, and lg. The default size is set to md.

Disabling SSR

Inkline can infer your tabs definition automatically, however it will not work with Server Side Rendering. To use this approach with SSR, you will need to mark the component as ClientOnly.

Props

ITabs
ITab
ITabTitle

Slots

ITabs
ITab
ITabTitle

Events

ITabs

Design Tokens

ITabs
ITab
ITabTitle