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.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
as | GhostSeparatorElement | — | No | Rendered root element. Omit to get hr when horizontal and div when vertical. li is valid inside a list-shaped menu (role=menu). |
decorative | boolean | false | No | When 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. |
orientation | GhostSeparatorOrientation | "horizontal" | No | Axis 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
| Attribute | Value | Description |
|---|---|---|
data-part | root | The single rendered element selected by as. |
data-orientation | horizontal, vertical | Resolved 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.
| 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
separator/basic
Native horizontal thematic break with separator semantics.
separator/composable
Same contract as GhostSeparator, applied to a native host.
separator/vertical
Inline-axis rule between neighboring items.
separator/decorative
Visual line omitted from the accessibility tree.
separator/list
li separator inside a list-shaped menu.