Kbd
Key caps and shortcuts: ⌘ ⌥ ⇧ ⌃ on macOS, words elsewhere; sequences like G then M.
CommandShiftOptionEnterEscapeK
<div className="flex items-center gap-8">
<Kbd>mod</Kbd>
<Kbd>shift</Kbd>
<Kbd>alt</Kbd>
<Kbd>enter</Kbd>
<Kbd>esc</Kbd>
<Kbd>k</Kbd>
</div>import { Kbd } from "@logicplanes/kaeso-ui";Props
childrenReactNodeA key name (
mod,shift,k,enter) or any text, for one key.keysstring[] | string[][]A whole shortcut instead of one key. Chords are arrays pressed together, and the outer list is pressed in order:
[["g"], ["l"]]is G then L.tone"default" | "onInk" = defaultOn the panel (
default) or on an ink surface such as a tooltip (onInk).