Skip to content

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.

All component references

Props ​

None declared.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultPalette parts composed by the consumer.

Slot props: default ​

None declared.

Exposed members ​

None declared.

Parts and data attributes ​

AttributeValueDescription
data-partoverlayScrim backdrop with .ghost-command-palette-overlay.
data-partcontentTop-anchored elevation-4 surface with .ghost-command-palette-content.
data-partinputQuery field with .ghost-command-palette-input and a focus ring.
data-partlistScrolling listbox with .ghost-command-palette-list.
data-partitemCommand row with .ghost-command-palette-item; the highlight draws the inset focus ring.
data-partseparatorHairline divider with .ghost-command-palette-separator.
data-stateactiveHighlighted item fill and inset focus ring.
data-statedisabledMuted, not-allowed item.

CSS variables ​

NameDescription
--ghost-command-palette-list-max-sizeMaximum block size of the scrolling list. Defaults to min(50dvh, 22rem).
--ghost-elevation-4-bgPalette surface background.
--ghost-scrimOverlay 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.

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

Examples ​

command-palette/themed ​

Example source

Search and run commands

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.

Last command: None yet

command-palette/async ​

Example source

Async page search

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.

Opened: Nothing yet