New to Kendo UI for Vue? Start a free 30-day trial

TabStrip

Component

Represents the Kendo UI for Vue TabStrip component. Accepts properties of type TabStripProps.

Definition

Package:@progress/kendo-vue-layout

Properties Interface:TabStripProps

Syntax:

vue
<TabStrip
    :selected="selected"
    :tabs="[
        { title: 'Orders', content: 'orders' },
        { title: 'Invoices', content: 'invoices' },
        { title: 'Returns', content: 'returns', disabled: true }
    ]"
    :tab-position="'top'"
    :tab-alignment="'start'"
    :size="'medium'"
    :animation="true"
    @select="onSelect"
>
    <template v-slot:orders>Open orders</template>
    <template v-slot:invoices>Unpaid invoices</template>
    <template v-slot:returns>Pending returns</template>
</TabStrip>

Properties

animation?

boolean

Turns on the animation when the user switches tabs.

Default:

true

dir?

string

Sets the dir HTML attribute of the TabStrip. Use it to switch between LTR and RTL.

Fires each time the user selects a tab.

selected?

number

Sets the index of the selected tab (see example).

Sets the size of the TabStrip.

The available options are:

  • small
  • medium
  • large
  • null—Does not set a size class.

Sets the alignment of the tabs.

The available options are:

  • "start"—Aligns the tabs at the start of the tab list.
  • "center"—Aligns the tabs in the center of the tab list.
  • "end"—Aligns the tabs at the end of the tab list.
  • "justify"—Justifies the tabs inside the tab list.
  • "stretched"—Stretches the tabs to fill the tab list.
Default:

start

tabIndex?

number

Sets the tabIndex attribute of the tab list.

Default:

0

Sets the position of the tabs in the TabStrip.

The available options are:

  • "top"—Renders the tabs at the top of the TabStrip.
  • "bottom"—Renders the tabs at the bottom of the TabStrip.
  • "left"—Renders the tabs on the left side of the TabStrip.
  • "right"—Renders the tabs on the right side of the TabStrip.
Default:

top

Sets the array of tabs that the TabStrip renders. Each tab is a TabStripTabProperties object.