GhostCommandPalette reference
Package: @ghostvue/themes. Status: experimental (stability policy).
Themed GhostCommandPalette root plus themed overlay and content wrappers that set data-themed, so the portaled palette picks up the scrim, elevation-4 surface, combobox input, and option recipes. Other parts are re-exported from @ghostvue/vue and styled through the content.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
None declared.
Emits
None declared.
Models
None declared.
Slots
| Name | Description |
|---|---|
default | Palette parts composed by the consumer. |
Slot props: default
None declared.
Exposed members
None declared.
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | overlay | Scrim backdrop with .ghost-command-palette-overlay. |
data-part | content | Top-anchored elevation-4 surface with .ghost-command-palette-content. |
data-part | input | Query field with .ghost-command-palette-input and a focus ring. |
data-part | list | Scrolling listbox with .ghost-command-palette-list. |
data-part | item | Command row with .ghost-command-palette-item; the highlight draws the inset focus ring. |
data-part | separator | Hairline divider with .ghost-command-palette-separator. |
data-state | active | Highlighted item fill and inset focus ring. |
data-state | disabled | Muted, not-allowed item. |
CSS variables
| Name | Description |
|---|---|
--ghost-command-palette-list-max-size | Maximum block size of the scrolling list. Defaults to min(50dvh, 22rem). |
--ghost-elevation-4-bg | Palette surface background. |
--ghost-scrim | Overlay color. |
Accessibility
Role: dialog. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-autocomplete-list/.
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
command-palette/themed
Themed palette from @ghostvue/themes opened from its trigger or an app-owned Mod+J shortcut, with grouped commands, GhostKbd hints, an empty message, and the last command shown on the page.
command-palette/async
Themed palette that searches pages through a fake server: visible and announced loading, an empty message that names the query, and a stale-response guard with useGhostCommandPaletteAsyncSearch.