Kbd Component
Keyboard key styling for shortcuts (e.g. Ctrl+K). Matches shadcn-svelte Kbd.
Kbd
Styled <kbd> for showing keyboard shortcuts. Uses design tokens for background, border, and mono font.
Add this component
The command below includes <strong>Kbd</strong>ârun it in your project directory to install this component (and the CSS if needed). No prompts.
Choose your package manager â click a tab to select, then copy the command.
Props
class(string, optional) - Additional CSS classes
Example
Press Ctrl + K to open search. On Mac use â + K .
Usage
Full example for each framework (Astro, Vanilla, Svelte, Vue, React). Switch framework via View as or by clicking a Usage tabâboth stay in sync.