Components / Surfaces
Kbd
Displays keyboard shortcuts.
⌘
K
Open command menu
<div style="display: flex; align-items: center; gap: 0.5rem">
<span class="kbd">⌘</span>
<span class="kbd">K</span>
<span>Open command menu</span>
</div>Installation
pnpm dlx loseta add kbdnpx loseta add kbdAccessibility and behavior
- Use .kbd inside menus, tooltips or shortcut hints.
Files
components/kbd.cssbasestyles/nova/kbd.cssstyleInstall contract
The CLI writes the base file under components/, the visual file for the selected style under styles/<name>/, and any primitive dependency underprimitives/. The generated index.css imports them in the right layer order.