Skip to content
Shortcut sheet, light
Light
Shortcut sheet, dark
Dark

Every state

  • Shortcut sheet, default, light
    Shortcut sheet, default, dark

    default

  • Shortcut sheet, hover, light
    Shortcut sheet, hover, dark

    hover

  • Shortcut sheet, focus, light
    Shortcut sheet, focus, dark

    focus

  • Shortcut sheet, open, light
    Shortcut sheet, open, dark

    open

  • Shortcut sheet, filtered, light
    Shortcut sheet, filtered, dark

    filtered

  • Shortcut sheet, empty, light
    Shortcut sheet, empty, dark

    empty

  • Shortcut sheet, other, light
    Shortcut sheet, other, dark

    other

Props

PropTypeDefaultWhat it does
buttonLabelstring"Keyboard shortcuts"Text of the button that opens the sheet.
titlestring"Keyboard shortcuts"Title of the dialog.
groupsKbdSheetGroup[][ { title: "General", shortcuts: [ { label: "Search tickets", keys: ["mod", "K"] }, { label: "Show this list", keys: …Groups.
hotkeystring | null"?"The key that opens the sheet from anywhere on the page (not while typing in a field). Null: only the button opens it.
filterLabelstring"Filter shortcuts"Label and placeholder of the filter field.
emptyText(query: string) => string(q) => `No shortcut matches “${q}”.`Shown when the filter matches nothing.
countText(count: number) => string(n) => (n === 1 ? "1 shortcut" : `${n} shortcuts`)Announced while filtering: "3 shortcuts".
closeLabelstring"Close"Close label.
thenWordstring"then"Word between the keys of a sequence ("G then I").
platformKbdPlatform | null–Force a platform's spelling of the keys. Left out: the visitor's own, read after hydration.
defaultOpenboolean–Open the sheet on mount (previews).
classNamestring–Extra classes on the outer element.

More keyboard keys

All 4
kbd-02 is in UI ProGet UI Pro, €199

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans