Import
Copy code
import { Kbd } from '@k8ordo/ui';Usage
Esc
Copy code
<Kbd>Esc</Kbd>Key combinations
For keys pressed together, place one Kbd per key side by side.
CtrlShiftP
Copy code
<Kbd>Ctrl</Kbd>
<Kbd>Shift</Kbd>
<Kbd>P</Kbd>Symbol keys
A symbol such as ⌘ or ⇧ makes no sense read aloud. Pass label: the symbol stays on screen, and the label is what a screen reader says.
CommandK
Copy code
<Kbd label="Command">⌘</Kbd>
<Kbd>K</Kbd>Props
children- Type:
string - Default: -
label?- Type:
string - Default: -
| Prop | Type | Default |
|---|---|---|
children | string | - |
label? | string | - |
Inherited attributes (except the ones set internally): HTMLAttributes<HTMLElement>