Panel
Tabs
Views that share one place on the page, switched by a list of tabs.
WAI-ARIA tested
Import
main.ts
import { Tabs } from '@vitral/vue';Basic
Files you opened in the last week.
Vertical
Name, email and password.
Manual activation
With `select-on-focus` off, the arrows only move focus; Enter or Space selects.
Rendered only while selected (`lazy`).
API
Read from packages/vue/src/components/Tabs/types.ts, so it says what the component actually accepts.
Props
| Name | Type | Description |
|---|---|---|
| orientation | 'horizontal' | 'vertical' | Tabs above the panels (the default) or beside them. |
| lazy | boolean | Render a panel only while its tab is selected. |
| selectOnFocus | boolean | Select a tab as soon as the arrow keys reach it: the APG's automatic activation, and the default. Off, the arrows only move focus and Enter/Space select. |
Plus pt, dt and unstyled from BaseProps, see pass-through and unstyled mode.
Slots
| Name | Slot props | Description |
|---|---|---|
| default | — | — |