GhostTabs reference
Package: @ghostvue/vue. Status: experimental (stability policy).
Headless tabs root provider. Manages controlled/uncontrolled selection, activation mode, and orientation for APG tab composites.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
activationMode | 'automatic' | 'manual' | "automatic" | No | Focus-driven (`automatic`) vs explicit activation (`manual`) tab selection. |
defaultValue | string | — | No | Initial selected value when `modelValue` is omitted. |
dir | 'ltr' | 'rtl' | — | No | Explicit text direction for roving focus within the tab list. |
modelValue | string | — | No | Controlled selected tab value. Omit for uncontrolled mode. |
orientation | 'horizontal' | 'vertical' | "horizontal" | No | Tab list orientation for arrow-key roving and `aria-orientation`. |
Emits
None declared.
Models
| Prop | Event | Type | Description |
|---|---|---|---|
modelValue | update:modelValue | string | v-model binding for `modelValue`. |
Slots
| Name | Description |
|---|---|
default | Container content. |
Slot props: default
| Name | Type | Description |
|---|---|---|
modelValue | string | undefined | Slot prop `modelValue`. |
Exposed members
| Name | Type | Description |
|---|---|---|
element | HTMLElement | null | Root element after mount; null before mount. |
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | root | Neutral content container. |
CSS variables
None declared.
Accessibility
Role: generic. APG pattern: https://www.w3.org/WAI/ARIA/apg/.
Required ARIA attributes: none.
Keyboard
None declared.
Verification
Each category is reviewed separately. Automated keyboard and axe results do not attest manual or assistive-technology review.
| Category | Status | Evidence |
|---|---|---|
| Automated keyboard | Not reviewed | No declared key is mapped to a browser test yet. |
| Manual interaction | Not reviewed | No review recorded. |
| Assistive technology | Not reviewed | No review recorded. |
Examples
tabs/basic
Controlled compound tabs with automatic activation.
tabs/manual
Tabs activate on click or Enter/Space instead of focus.
tabs/vertical
Vertical tab list beside its panel, stacking above it in narrow previews.
tabs/themed
Themed strip stacked above its panel, with a disabled tab, from @ghostvue/themes.
tabs/review-sections
Themed vertical workspace tabs with manual activation and a responsive list and panel layout.