Navigation
Tabs
Switch between views in the same context. One indicator glides between tabs; the content simply changes.
Everything at a glance: status, domains and recent activity.
Every build, with logs and one-click rollbacks.
Traffic and performance over the last 30 days.
Environment variables, members and billing.
Installation #
With the Nuxt module, every component is auto-imported — there is nothing to add. In a plain Vue project, import what you use:
Copy
import { JTabs } from '@juxtui/ui'Usage #
Copy
<JTabs v-model="tab" :items="[
{ value: 'overview', label: 'Overview' },
{ value: 'activity', label: 'Activity' },
]">
<template #overview>…</template>
<template #activity>…</template>
</JTabs>Variants & examples #
Pill#
A segmented control for compact view switches.
Disabled tabs#
Name, avatar and default region.
Invite people and manage roles.
Who changed what, and when.
API #
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| modelValue | string | — | The selected tab’s value. Defaults to the first enabled tab. |
| items | Array<{ value, label, disabled? }> | — | The tabs. |
| variant | 'line' | 'pill' | 'line' | Underline for sections, pill for view switches. |
| size | 'sm' | 'md' | 'md' | Tab height. |
| fill | boolean | false | Stretch tabs to fill the width. |
| label | string | — | Accessible name of the tab list. |
Events
| Event | Payload | Description |
|---|---|---|
| update:modelValue | string | Emitted when a tab is selected. |
Slots
| Slot | Props | Description |
|---|---|---|
| [value] | { item, selected } | One slot per tab, named after its value, for the panel. |
| tab | { item, selected } | Custom tab label. |
Accessibility #
- Implements the WAI-ARIA tabs pattern with a roving
tabindexand automatic activation. - Each panel is labelled by its tab and linked with
aria-controls. - The indicator animates only on deliberate changes — never on resize — and not at all under reduced motion.
Keyboard #
| Key | Action |
|---|---|
| ←→ | Select the previous or next tab, skipping disabled ones. |
| HomeEnd | Select the first or last tab. |
| Tab | Move focus from the tab list into the panel. |