Skip to content

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.

All component references

Props ​

NameTypeDefaultRequiredDescription
asGhostTabsContentElement"div"NoTag name or component rendered for the tab panel.
valuestring—YesPanel value; must match a GhostTabsTrigger value.
variant'framed' | 'plain'"framed"NoPanel 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 ​

NameDescription
defaultPanel content.

Slot props: default ​

None declared.

Exposed members ​

NameTypeDescription
elementHTMLElement | nullPanel element after mount; null before mount.
focus(options?: FocusOptions) => voidFocus the panel element.
blur() => voidBlur the panel element.

Parts and data attributes ​

AttributeValueDescription
data-partcontentTab panel; data-variant="plain" removes its border, radius, background, and padding.
data-stateactiveApplied on data-state while the panel's tab is selected.
data-stateinactiveApplied on data-state while another tab is selected.

CSS variables ​

NameDescription
--ghost-elevation-1-bgFramed panel background.
--ghost-focus-ring-colorPanel 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.

CategoryStatusEvidence
Automated keyboardNot reviewedNo declared key is mapped to a browser test yet.
Manual interactionNot reviewedNo review recorded.
Assistive technologyNot reviewedNo review recorded.

Examples ​

None declared.