Components

BaseTabs

Underlined text tabs to switch views inside a card.

components/ui/BaseTabs.vue
View in the demo

Example

Use it to switch between views of the same content, such as preview and code or the files of a snippet. LandingCodeShowcase uses it for the files of a snippet. For the sections of a settings page use BaseSectionNav; for a choice that filters data use BaseToggleGroup.

API

Props

Name
Type
Default
Description
v-model
required
string | number—The value of the active tab.
itemsBaseTabsItem[][]The tabs: title, value and an optional icon.
labelstring—The accessible name of the tab list.
monobooleanfalseUses the code font, for file names.

Events

Name
Payload
Description
@update:modelValue[value: string | number]—
© 2026 melsami UI.
Developer documentation for melsami UI.