Skip to content

GhostSeparator reference ​

Package: @ghostvue/vue. Status: experimental (stability policy).

Headless visual and semantic divider. useGhostSeparator owns orientation and decorative semantics; GhostSeparator is the thin unstyled element. Themed styles live on @ghostvue/themes.

Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.

All component references

Props ​

NameTypeDefaultRequiredDescription
asGhostSeparatorElement—NoRendered root element. Omit to get hr when horizontal and div when vertical. li is valid inside a list-shaped menu (role=menu).
decorativebooleanfalseNoWhen true, sets role=none so the line is omitted from the accessibility tree. Defaults false so native hr and menu/toolbar grouping keep separator semantics.
orientationGhostSeparatorOrientation"horizontal"NoAxis of the line. Vertical has no native element, so the default as becomes div.

Emits ​

None declared.

Models ​

None declared.

Slots ​

None declared.

Exposed members ​

None declared.

Parts and data attributes ​

AttributeValueDescription
data-partrootThe single rendered element selected by as.
data-orientationhorizontal, verticalResolved orientation on the root. Always present.

CSS variables ​

None declared.

Accessibility ​

Role: separator. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/menubar/.

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.

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

Examples ​

separator/basic ​

Example source

Basic Headless

Native horizontal thematic break with separator semantics.

Profile


Billing

separator/composable ​

Example source

Composable Headless

Same contract as GhostSeparator, applied to a native host.

Profile


Billing

separator/vertical ​

Example source

Vertical Headless

Inline-axis rule between neighboring items.

CutCopy

separator/decorative ​

Example source

Decorative Headless

Visual line omitted from the accessibility tree.

The line below is visual only.


Assistive technology reads these paragraphs as contiguous.

separator/list ​

Example source

List Headless

li separator inside a list-shaped menu.

  • New
  • Open
  • Quit