tabs

Tabs

Switches between panels of related content, such as a product's description and details; a filled or underlined list, in a row or a column, mirrored in a right-to-left page.

Parts

PartFileDoes
TabsTabs.vueGroups all parts of the tabs, which switch between panels of content.
TabsContentTabsContent.vueHolds what its tab shows while that tab is selected.
TabsListTabsList.vueGroups the triggers that switch between the tabs.
TabsTriggerTabsTrigger.vueLets the user switch to its tab.

Anatomy

<Tabs>
  <TabsList>
    <TabsTrigger />
  </TabsList>
  <TabsContent />
</Tabs>

Styling

All of Tabs’s styles live in tabs.json. New to styling in Frontic UI? How styling works →

Install

npm packages
@vueuse/core
class-variance-authority
reka-ui

API reference

Groups all parts of the tabs, which switch between panels of content.

Props 9

PropTypeDefault
defaultValueStringOrNumber—
orientationDataOrientation'horizontal'
dirDirection—
activationMode'automatic' | 'manual''automatic'
modelValueStringOrNumber—
unmountOnHidebooleantrue
asChildbooleanfalse
asAsTag | Component—
classClassValue—

Events 1

EventPayload
update:modelValuepayload: StringOrNumber

Slots 1

SlotSlot props
default{ modelValue: string | number | undefined; }

Data attributes 3

Data attributeValues
data-horizontal—
data-orientation'vertical' | 'horizontal'
data-vertical—

Recipe tabs 1 group

TabsContent.vue

TabsList.vue

TabsTrigger.vue
Tabs
State