Command
A searchable command list with groups, shortcuts, and an empty state, inline or in a dialog.
New invoice⌘N
Schedule payment
New customer
Profile⌘P
Billing⌘B
Team members
When to use
- Use when
- A searchable list of actions or destinations, such as a command palette on ⌘K.
- Avoid when
- There are only a few options; use Dropdown Menu or Select.
Installation
The source lands in src/components/ui/command.tsx, along with any Shelf items it builds on, and .shelf/lock.json records what was installed. It's yours to edit.
Usage
Built on
- Packages
@base-ui/react,@stylexjs/stylex- Accessibility
- Focus, keyboard, and ARIA behavior come from Base UI.
- Figma
- In progress. See Designers and Figma.