Skip to content
Preview
In a menu row
In a tooltip
Press Escape to close, or Command KControl K to search.
In a sentence
Command KControl K
In a field

Kbd

keys
string | readonly string[]
One key or a combo, drawn in one chip: "mod+shift+k", "⌘⇧K", ["⌘", "K"] (see shortcutKeys).
size
"sm" | "md"
Default: "sm"
sm a chip 20 tall, in a menu, a tooltip, a row or a sentence; md 24 tall, in a list of shortcuts.
variant
"key" | "plain"
Default: "key"
key: the keys in one chip. plain: one run of text, a hint inside a control (a field's end).
children
string
The keys as text, read as keys is: <Kbd>Esc</Kbd>.

Rest props go to <kbd> props and render.

hintsrequired
readonly KeyHint[]

Rest props go to <div> props and render.

State machine

PreviewOne key or a combination in one chip.
Command KControl KCommand Shift PControl Shift PEscape