AppTabs
Tabs (APG Tabs): role tablist, tab and tabpanel, one Tab stop on the selected tab, the arrows (flipped in RTL), Home and End, and automatic or manual activation. One indicator travels between tabs on a transform, as AppNavbar's pill does, on --vt-duration; under reduced motion it jumps. Panels come from a slot named after each key.
Install: pnpm add-component AppTabs
Basic usage
Tab once into the list, then use the arrow keys; the disabled tab is skipped. Tab again to reach the panel.
Line
Vertical, manual activation
The arrows move focus without switching the panel; Enter or Space selects.
API
modelValue(string): The selected tab's key (use v-model). Works without v-model too.items(TabItem[]): { key, label, icon?, disabled? } for each tab.label(string): aria-label of the tab list. Needed unless a heading right above names the tabs.variant('pill' | 'line'): pill: a filled shape behind the selected tab. line: a bar under it, on a rule.orientation('horizontal' | 'vertical'): Vertical puts the list beside the panels and uses Up and Down.activation('automatic' | 'manual'): automatic: the arrows select. manual: the arrows move focus, Enter or Space selects (for panels that are slow to render).size('sm' | 'md'): Tab height from the density tokens.lazy(boolean): Render a panel the first time it is shown, then keep it.