Skip to content

Tabs

Tabbed content. Supports horizontal / vertical orientation, line / card / button variants, and addable / closable tabs.

Basic usage

Example

Card variant

Vertical

API

Props

NameTypeDefaultDescription
options*Array
valueTabValuenull
hueEpHue"information"
sizeEpSizeundefined
iconPositionTabIconPosition"before"
disabledbooleanfalse
verticalbooleanfalse
variantunion"underline"
addablebooleanfalse
closablebooleanfalse
lazybooleantrue
ariaLabelstring"Tabs"

Events

EventPayloadDescription
update:value{"names":["TabValue"]}
change{"names":["TabValue"]}
add
close{"names":["TabOption"]}

Slots

SlotScopeDescription
extra
`tab-${String(option.value)}`name, option
defaultoption

Released under the MIT License. Built with VitePress.