Skip to content

Kbd

The Kbd component is used to display keyboard inputs or shortcuts in a semantic and visually consistent way.
It is commonly used in documentation, tutorials, and UI hints to indicate user actions.

  • Semantic meaning: Clearly represents keyboard input (Ctrl, Enter, etc.).
  • Consistent styling: Monospace and accessible default appearance.
  • Flexible usage: Works inline with text or inside UI components.
  • Composable: Can be combined with shortcuts, tooltips, or guides.
Ctrl K


Ctrl K


Ctrl K


Ctrl K


Ctrl K


PropTypeDefaultDescription
childrennodeThe keyboard key or shortcut text to be displayed.
classstring""Optional additional classes for custom styling.
stylestring""Inline styles for layout or visual customization.
  • Use short and recognizable labels (e.g., Ctrl, S, Enter).
  • Combine multiple Kbd components to represent shortcuts (e.g., Ctrl + S).
  • Avoid overusing in body text to maintain readability.
  • Keep styling subtle to preserve semantic meaning.
  • Use consistently across documentation for better UX familiarity.