Getting Started
Foundations
Components
Search for a command to run...
The Kbd component provides a semantic and visually consistent way to represent keyboard keys and
shortcuts in documentation, tooltips, menu items, or instructional text. It uses the native <kbd>
HTML element with enhanced styling that matches your design system.
Common use cases include command palettes, keyboard shortcut guides, form field hints, and tooltips that explain keyboard interactions. Use Kbd components to improve discoverability of keyboard shortcuts, making your application more accessible to power users and those who prefer keyboard navigation.
import { Kbd } from "@strongtie/design-system/kbd"This module exports the following components:
KbdKbdGroupAll components accept standard HTML attributes and React props.
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
CSS classes used by this component:
kbdEnsure proper accessibility attributes are added when implementing this component.