Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA picker that opens from a keyboard shortcut anywhere on the page (Ctrl or Cmd+K), shows the shortcut as a hint on the button and returns focus to where you were when you close it with Escape. Use this when one picker is the main way to move around an app.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
Use it for project, workspace or record switchers that experienced users reach with the keyboard, where losing your place in the page when the list closes would be frustrating.
Do not use it when the shortcut would clash with the browser or another widget. Pass a different key.
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Default | Description |
|---|---|---|---|
options | { value, label }[] | - | The choices. |
value | string | - | Selected value (controlled). |
defaultValue | string | - | Initial value. |
onValueChange | (value: string) => void | - | Runs when a value is chosen. |
shortcutKey | string | k | The key used with Ctrl or Cmd. |
allowInInputs | boolean | false | Fire while typing in a text field. |
aria-label | string | Project | Names the picker. |
aria-keyshortcuts="Control+K Meta+K" is on the button; the visible hint reads Ctrl K or ⌘K depending on the platform and is aria-hidden (the shortcut is also in the name).allowInInputs), when another dialog or menu is open, and when the key is held down (repeat).The pattern ships with a Testing Library test (combobox-global-shortcut-focus.test.tsx) that covers opening from anywhere, ignoring editable fields, restoring focus on Escape and choosing.