Reactolith UI Getting Started Introduction Installation Usage Layout Aspect Ratio Card Resizable Scroll Area Separator Direction Provider Forms Button Button Group Calendar Checkbox Combobox Field Input Input Group Input OTP Label Native Select Radio Group Select Slider Switch Textarea Toggle Toggle Group Data Display Accordion Avatar Badge Carousel Chart Collapsible Item Kbd Table Feedback Alert Empty Progress Skeleton Sonner Spinner Overlay Alert Dialog Context Menu Dialog Dropdown Menu Hover Card Popover Sheet Tooltip Navigation Breadcrumb Command Menubar Navigation Menu Pagination Sidebar Tabs

Kbd

Displays keyboard shortcuts and key combinations.

Preview

Ctrl + C Copy
Ctrl + V Paste
Esc Close

Usage

<div class="flex flex-wrap items-center gap-4">
  <div class="flex items-center gap-1">
    <ui-kbd>Ctrl</ui-kbd>
    <span class="text-muted-foreground text-sm">+</span>
    <ui-kbd>C</ui-kbd>
    <span class="text-sm text-muted-foreground ml-2">Copy</span>
  </div>
  <div class="flex items-center gap-1">
    <ui-kbd>Ctrl</ui-kbd>
    <span class="text-muted-foreground text-sm">+</span>
    <ui-kbd>V</ui-kbd>
    <span class="text-sm text-muted-foreground ml-2">Paste</span>
  </div>
  <div class="flex items-center gap-1">
    <ui-kbd>Esc</ui-kbd>
    <span class="text-sm text-muted-foreground ml-2">Close</span>
  </div>
</div>

Sub-components

<ui-kbd> <ui-kbd-group>

All components also accept standard HTML attributes (class, id, style, data-*, aria-*, etc.) which are passed through to the underlying element.