Skip to content
loseta

Components / Surfaces

Kbd

Displays keyboard shortcuts.

Status stable
⌘ 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 kbd
npx loseta add kbd

Accessibility and behavior

  • Use .kbd inside menus, tooltips or shortcut hints.

Files

components/kbd.cssbase
styles/nova/kbd.cssstyle

Install 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.

← Back to components

loseta is MIT licensed. Built with native CSS, no runtime. Inspired byshadcn/ui.