

Every state


default


hover


focus


open


filtered


empty


other
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| buttonLabel | string | "Keyboard shortcuts" | Text of the button that opens the sheet. |
| title | string | "Keyboard shortcuts" | Title of the dialog. |
| groups | KbdSheetGroup[] | [ { title: "General", shortcuts: [ { label: "Search tickets", keys: ["mod", "K"] }, { label: "Show this list", keys: … | Groups. |
| hotkey | string | null | "?" | The key that opens the sheet from anywhere on the page (not while typing in a field). Null: only the button opens it. |
| filterLabel | string | "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". |
| closeLabel | string | "Close" | Close label. |
| thenWord | string | "then" | Word between the keys of a sequence ("G then I"). |
| platform | KbdPlatform | null | – | Force a platform's spelling of the keys. Left out: the visitor's own, read after hydration. |
| defaultOpen | boolean | – | Open the sheet on mount (previews). |
| className | string | – | Extra classes on the outer element. |
More keyboard keys
All 4kbd-02 is in UI ProGet UI Pro, €199


