GhostTabsContent reference
Package: @ghostvue/themes. Status: experimental (stability policy).
Themed GhostTabsContent tab panel. The framed variant draws the raised, bordered, padded panel; the plain variant drops the frame for a panel inside a card or code block.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
as | GhostTabsContentElement | "div" | No | Tag name or component rendered for the tab panel. |
value | string | — | Yes | Panel value; must match a GhostTabsTrigger value. |
variant | 'framed' | 'plain' | "framed" | No | Panel frame. `framed` draws the elevated background, border, radius, and inset padding. `plain` draws none of them, for a panel inside a surface that already frames it. The panel stays a tab stop with the same focus ring. The default omits `data-variant`. |
Emits
None declared.
Models
None declared.
Slots
| Name | Description |
|---|---|
default | Panel content. |
Slot props: default
None declared.
Exposed members
| Name | Type | Description |
|---|---|---|
element | HTMLElement | null | Panel element after mount; null before mount. |
focus | (options?: FocusOptions) => void | Focus the panel element. |
blur | () => void | Blur the panel element. |
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | content | Tab panel; data-variant="plain" removes its border, radius, background, and padding. |
data-state | active | Applied on data-state while the panel's tab is selected. |
data-state | inactive | Applied on data-state while another tab is selected. |
CSS variables
| Name | Description |
|---|---|
--ghost-elevation-1-bg | Framed panel background. |
--ghost-focus-ring-color | Panel focus ring for both variants. |
Accessibility
Role: tabpanel. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/tabs/.
Required ARIA attributes: aria-labelledby.
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
None declared.