fndn/ui

Blocks

Command Palette

Beta

Every page and action of an app in one searchable list, opened with ⌘K.

Details

The app's ⌘K: every page and action in one searchable list over the page. The Search panel in a bare Dialog pinned near the top: ⌘K (Ctrl K) anywhere opens and closes it, typing filters on names and keywords, the arrow keys move the gliding highlight through groups, Enter runs the command and closes the palette. While the query is empty the recently used commands come first. Rows lead with an icon and end with a note and the command's own shortcut (Kbd). It opens and closes at once, from the pointer too: a palette is used many times a day. Behaviour, focus and ARIA come from the Zag dialog and combobox machines, through Ark UI in React, Vue and Svelte.

Behaviour from Ark UI, the dialog machine of Zag.