Skip to content

NavigationTabs ​

Tabs with arrow keys, automatic or manual activation, hidden until-found panels and an optional state in the URL.

ts
import { NavigationTabs } from '@zairakai/vue-components/Navigation'

Usage ​

vue
<NavigationTabs />

Example ​

The overview.
vue
<template>
  <NavigationTabs>
    <NavigationTabList label="Sections">
      <NavigationTab id="one">Overview</NavigationTab>
      <NavigationTab id="two">Details</NavigationTab>
    </NavigationTabList>
    <NavigationTabPanel id="one">The overview.</NavigationTabPanel>
    <NavigationTabPanel id="two">The details.</NavigationTabPanel>
  </NavigationTabs>
</template>

Props ​

NameTypeDefaultDescription
idstring
classstring
modelValuestringundefinedThe id of the active tab. Without it the first enabled tab is active.
queryParamstringKeep the active tab in this query parameter of the URL (?tab=settings).
orientationstring'horizontal'
activationstring'auto'"auto" shows a panel as soon as its tab has the focus, "manual" waits for Enter or Space.
transitionbooleanfalseAnimate the change of panel with a view transition, when the browser has them.

Events ​

NameDescription
update:modelValue

Slots ​

NameDescription
default

See Theming for the class hooks and the data-* state of the components.

Documentation of 1.4.4 , built from 8e9b054 on 1.4.4 by pipeline #2989941079 on 2026-10-26.