Kbd

Key caps and shortcuts: ⌘ ⌥ ⇧ ⌃ on macOS, words elsewhere; sequences like G then M.

View source
CommandShiftOptionEnterEscapeK
import { Kbd } from "@logicplanes/kaeso-ui";

Props

  • children
    ReactNode

    A key name (mod, shift, k, enter) or any text, for one key.

  • keys
    string[] | 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" = default

    On the panel (default) or on an ink surface such as a tooltip (onInk).