Skip to content
Theme:

Ui3nTabs

Tabs component for organizing content into tabbed sections.

Props

NameTypeDefaultDescription
idstring | undefined

Root element id

modelValue*number0

Current active tab index

itemDirection"horizontal" | "vertical" | undefined"horizontal"

Direction of tabs

activeColorstring | undefined"var(--color-text-control-accent-default)"

Active tab color

inactiveColorstring | undefined"var(--color-text-control-primary-default)"

Inactive tab color

indicatorColorstring | undefined"var(--color-border-control-accent-default)"

Indicator color

indicatorSizestring | number | undefined2

Indicator size

indicatorPosition"reverse" | "normal" | undefined"normal"

Indicator position

Events

Event NameArguments / Value TypeDescription
update:modelValueval: number

Slots

Slot NameScope Props (v-slot)Description
#default

Default slot

Usage Examples

Simple tabs

Simple tabs

Basic horizontal tabs

Vertical tabs

Vertical tabs

Tabs with vertical direction

Customized tabs

Customized tabs

Tabs with custom colors and indicator