docs/components/display/Kbd

Kbd

Keyboard key display.

import { Kbd } from '@ybouhjira/hyperkit';

#Playground

Edit the code — the preview recompiles and re-renders as you type.

Live playground
Loading preview…

#More Examples

Multiple Keys

<Kbd keys={[ '⌘', 'Shift', 'P' ]} />

Enter

<Kbd>Enter</Kbd>

#Props

PropTypeDefaultDescription
childrenJSX.ElementContent to render as a single key.
keysstring[]Array of key names to render as a keyboard shortcut (e.g., ['Ctrl', 'C']).
classstringAdditional CSS classes.

#Design Tokens

This component reads the following CSS custom properties. Override them globally or per-instance to restyle it — see the CSS Variables guide.

  • --sk-bg-tertiary
  • --sk-border-subtle
  • --sk-font-mono
  • --sk-font-size-xs
  • --sk-radius-sm
  • --sk-space-lg
  • --sk-space-px
  • --sk-space-xs
  • --sk-text-muted
  • --sk-text-secondary