Skip to content
Shortcut in menu, light
Light
Shortcut in menu, dark
Dark

Every state

  • Shortcut in menu, default, light
    Shortcut in menu, default, dark

    default

  • Shortcut in menu, hover, light
    Shortcut in menu, hover, dark

    hover

  • Shortcut in menu, focus, light
    Shortcut in menu, focus, dark

    focus

  • Shortcut in menu, focus-disabled, light
    Shortcut in menu, focus-disabled, dark

    focus-disabled

  • Shortcut in menu, checked, light
    Shortcut in menu, checked, dark

    checked

  • Shortcut in menu, other, light
    Shortcut in menu, other, dark

    other

Props

PropTypeDefaultWhat it does
labelstring"Task actions"Accessible name of the menu.
groupsKbdMenuRowGroup[][ { items: [ { id: "rename", label: "Rename", icon: "pencil", keys: ["F2"] }, { id: "copy-link", label: "Copy link", …Groups of rows, drawn with a separator between them.
platformKbdPlatform | null–Force a platform's spelling of the shortcuts. Left out: the visitor's own, read after hydration.
onSelect(id: string) => void–Called with the row's id when an action row is chosen.
onCheckedChange(id: string, checked: boolean) => void–Called with the row's id and its new state when a checkable row is toggled.
classNamestring–Extra classes on the outer element.

More keyboard keys

All 4
kbd-01 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