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-modelrequired | string | number | — | The value of the active tab. |
items | BaseTabsItem[] | [] | The tabs: title, value and an optional icon. |
label | string | — | The accessible name of the tab list. |
mono | boolean | false | Uses the code font, for file names. |
Events
Name | Payload | Description |
|---|---|---|
@update:modelValue | [value: string | number] | — |