Kbd
import { Kbd, KeyLegend, shortcutKeys, spokenKeys, isGlyphShortcut, ariaKeyShortcuts, shortcut } from "@arcadia/ui";In a menu row
In a tooltip
In a sentence
In a field
Kbd
keys- string | readonly string[]
- One key or a combo, drawn in one chip:
"mod+shift+k","⌘⇧K",["⌘", "K"](seeshortcutKeys). size- "sm" | "md"
- Default:
"sm" sma chip 20 tall, in a menu, a tooltip, a row or a sentence;md24 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
keysis:<Kbd>Esc</Kbd>.
Rest props go to <kbd> props and render.
hintsrequired- readonly KeyHint[]
Rest props go to <div> props and render.