Shortcut Button
A button with an inline keycap hint that triggers on its keyboard shortcut, scoped or global, ignored while typing, with a press flash when the key fires it.
Preview
PR #482 · Cache invoices
Shortcuts work while this card has focus or the pointer
Press a shortcut
Install
Pro source requires Pebble Pro. Try the full preview above.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| shortcut | string | — | Keys to trigger it, e.g. "mod+s", "n", "shift+enter". mod is ⌘ on Apple, Ctrl elsewhere. Required. |
| scope | "global" | "scope" | "global" | scope: only while focus or the pointer is inside the nearest [data-shortcut-scope]. |
| hideHint | boolean | false | Hide the keycaps but keep the shortcut. |
| ...ButtonProps | ButtonProps | variant "secondary" | All Button props: variant, size, loading, disabled, onClick… |
Pro component
Try the full preview above. Editable source and build guides require Pebble Pro.
