Command Examples
21 command menus: inline lists, dialogs over the page and popovers under a button, with icons, shortcut hints, Stable and Beta badges, two-line items, separators and status dots. Each on React, Vue, Svelte and Solid, with Base UI, React Aria, Ark UI or Radix UI on React.
Every command example
21 examples.
- Command Actions MenuStandardAn open command menu of file actions, grouped as Quick Actions and File Actions, each row with an icon and a shortcut.

- Command Dialog Actions MenuDialogA Quick Actions button that opens a dialog of file actions, grouped in two, each row with an icon and a shortcut.

- Command Dialog with BadgesDialogA Browse Components button that opens a dialog of Button, Input, Table, and DataGrid with Stable or Beta badges.

- Command Dialog with DescriptionsDialogA Search Contacts button that opens a dialog of contact details, each with a muted line naming what the row is.

- Command Dialog with Icons and ShortcutsDialogAn Open Command Menu button that opens a dialog with icons on suggestions and shortcut hints on settings.

- Command Dialog with SeparatorsDialogA Search Files button that opens a dialog of recent files, folders, and media, split by lines.

- Command Dialog with Status IndicatorsDialogA View Services button that opens a dialog of services, each with a colored dot and Running, Warning, or Stopped.

- Command Popover Actions MenuPopoverAn outline Quick Actions button that opens a popover of file actions, each with an icon and a shortcut.

- Command Popover with BadgesPopoverAn outline Browse Components button that opens a popover where each component shows a Stable or Beta badge.

- Command Popover with DescriptionsPopoverAn outline Search Contacts button that opens a popover of contact rows, each with a muted line naming what it is.

- Command Popover with Icons and ShortcutsPopoverAn outline Open Command Menu button that opens a popover with icons on every item and shortcuts on settings.

- Command Popover with SeparatorsPopoverAn outline Search Files button that opens a popover of files, folders, and media with a line between groups.

Or describe it. With Pro, your AI agent installs the command example you describe, on your framework and UI library.
Get ProGalleries
More component examples
8 related galleries, free: open one for its live examples and their code.
Pricing
Command examples MCP, with Pro
Your AI agent installs any of the 1364 examples, and every component, block and icon, with every Pro plan.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
shadcn.io's Command is a search field over a list of items that filters as you type, with the arrow keys to move and Enter to run the highlighted item. It comes with CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandSeparator and CommandShortcut parts, plus CommandDialog to open it over the page. Each example in this gallery is one small file built from those parts.
Yes. Every example is free to use in personal and commercial projects, with no attribution required. Seeing the code and installing an example takes a free shadcn.io account.
A Command runs an action or jumps somewhere: a palette, a quick actions menu, a file search. A Combobox picks a value that stays in a form field. Both filter a list as you type, but only the Combobox keeps a selection.
It puts every action one search away. People who know what they want type a few letters instead of hunting through menus, and the list doubles as a map of what the app can do, with the shortcuts beside each item.
A dialog for app-wide actions, the palette people open from anywhere: it covers the page and takes all the attention. A popover for actions tied to one control, opened from a button and shown under it. The standard examples sit in the page, for a menu that's always on screen.
Put related items in a CommandGroup with a heading, and add a CommandSeparator between groups when the headings alone don't split the list enough. Group by task, like Quick Actions and File Actions.
Put a CommandShortcut at the end of the item, as the icons and shortcuts examples do. It's a label only: make sure the keys it shows really run the action, with a listener of your own.
Let the item's label grow to fill the row and put the Badge, or a short status text, after it. The status dot examples write the state out beside the dot, so it never rests on color alone.
Sign in with a free account, open the example and run the install command under Installation. The CLI adds the example's file to your project along with the Command component, and Button, Badge or Popover when the example uses them.
Listen for keydown on the document and toggle the dialog's open state when the key is k with the meta or control key held. Keep a visible button too, since touch screens have no keyboard shortcut.
Each library names it its own way: a select handler on each item on Base UI and Radix UI, an action handler on the list on React Aria, and a value change handler on the Command on Ark UI, Vue, Svelte and Solid. Close the dialog or the popover in the same handler.
shadcn.io's Command, with Button, Badge and Popover in some examples, styled with Tailwind CSS and Lucide icons. In React it's built on Base UI, React Aria, Ark UI or Radix UI, whichever your project uses; the Vue, Svelte and Solid versions are built on Ark UI.
Yes. The search field is labeled, the arrow keys move the highlight, Enter runs the item, and Escape closes a dialog or a popover and returns focus to the button. Icons and status dots are hidden from screen readers, so each item is read by its text.
Yes. They render on the server, and the search, the keyboard and the dialogs and popovers come alive in the browser.
4.9 out of 5 from 150+ developers
Every command example. One prompt away.
Every command example is free with an account. With Pro, your AI agent installs them from a prompt.
Get Pro
















