- Command palette⌘+K
- Save draft⌘+S
- Toggle sidebar⌘+⇧+B
- Close dialogEsc
GhostKbd reference
Package: @ghostvue/themes. Status: experimental (stability policy).
Themed wrapper around headless GhostKbd. Same keys and platform props plus size. Importing it loads the default stylesheet and scopes keycap styles to this instance. Hand-written until GHO-13 generates manifests.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
keys | string | readonly string[] | — | No | Key tokens forwarded to the unstyled GhostKbd. |
platform | 'auto' | 'apple' | 'pc' | "auto" | No | Modifier label set forwarded to the unstyled GhostKbd. |
size | 'sm' | 'md' | 'lg' | "md" | No | Type and inset scale. The default omits data-size so CSS can treat a missing hook as md. |
Emits
None declared.
Models
None declared.
Slots
| Name | Description |
|---|---|
default | Key content forwarded to the unstyled GhostKbd. |
Slot props: default
None declared.
Exposed members
None declared.
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | root | The outer native kbd inside the display:contents themed scope. Combination roots drop keycap chrome. |
data-part | key | Nested keycap for one token from the keys prop. |
data-part | separator | Muted plus between keycaps. |
CSS variables
| Name | Description |
|---|---|
--ghost-elevation-0-bg | Keycap background. |
--ghost-elevation-0-border | Keycap border color. |
--ghost-elevation-0-shadow | Keycap shadow. |
--ghost-elevation-0-highlight | Keycap inset highlight. |
--ghost-surface-fg | Keycap text color. |
--ghost-text-muted | Combination separator color. |
--ghost-border-hairline-width | Keycap border width. |
--ghost-radius-sm | Default keycap corner radius. |
--ghost-radius-md | Large keycap corner radius. |
--ghost-type-family-sans | Keycap font family. |
--ghost-type-size-xs | Small keycap font size. |
--ghost-type-size-sm | Default keycap font size. |
--ghost-type-size-md | Large keycap font size. |
--ghost-type-weight-medium | Keycap font weight. |
--ghost-type-letter-tight | Keycap letter spacing. |
--ghost-type-line-tight | Keycap line height. |
--ghost-space-gap-xs | Default keycap block padding, small padding, and combination gap. |
--ghost-space-gap-sm | Default keycap inline padding. |
--ghost-space-inset-xs | Large keycap padding. |
Accessibility
Role: generic. APG pattern: https://www.w3.org/WAI/ARIA/apg/practices/names-and-descriptions/.
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
kbd/command-shortcuts
Platform-switchable keyboard shortcut list rendered with themed GhostKbd keycaps.
kbd/themed
Keycap chrome and size on the @ghostvue/themes wrapper.