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 —

Active tab color

inactiveColorstring | undefined —

Inactive tab color

indicatorColorstring | undefined —

Indicator color

indicatorSizestring | number | undefined —

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

CSS Variables

Set any of these where you need it — on :root, on a container, or on the element itself through [data-ui3n] — and the component follows. Leave them alone and it uses the defaults below.

NameDefault
--ui3n-tabs-active-colorvar(--color-text-control-accent-default)
--ui3n-tabs-height48px
--ui3n-tabs-inactive-colorvar(--color-text-control-primary-default)
--ui3n-tabs-indicator-colorvar(--color-border-control-accent-default)
--ui3n-tabs-indicator-position0
--ui3n-tabs-indicator-size2px

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