Shortcuts Overlay
Overlays · Button, ShortcutsOverlay
The "?" overlay listing every keyboard shortcut, grouped by area.
Props: open, onClose, title, groups ({title, items: [label, keys[]]}). Esc closes.
Props
Button
| Prop | Type | Notes |
|---|---|---|
variant? | "primary" | "secondary" | "soft" | "ghost" | "danger" | "danger-solid" | |
size? | "md" | "sm" | |
icon? | IconName | |
iconRight? | IconName | |
disabled? | boolean | |
type? | "button" | "submit" | |
onClick? | (e: MouseEvent<HTMLButtonElement>) => void | |
children? | ReactNode | |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |
ShortcutsOverlay
| Prop | Type | Notes |
|---|---|---|
open | boolean | Required |
onClose | () => void | Required |
title? | string | |
groups | { title: string; items: [string, string[]][] }[] | Required |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |