GitHub 560+

Doc

Documentation page shells for component pages with content, table of contents, and contextual links.

Doc 1

Command Menu

A searchable command surface for navigation, quick actions, and dense picker workflows.

Installation

Add the command component from the @fulldev registry with the shadcn CLI, then import the pieces you need from the installed component folder. The installed files include the root, input, list, group, item, separator, and empty state primitives.

Anatomy

A command menu usually starts with a text input, followed by grouped results. Keep destructive actions visually separate from navigation and creation actions so keyboard users can move quickly without losing context.

Empty state

Empty states should explain what was searched and offer a next action when possible. For example, a project switcher can show a create-project action when no existing project matches the query.

Usage

Use command menus for focused, high-frequency workflows. For simple forms, prefer a combobox or select; for global navigation and actions, pair the command menu with a dialog trigger and a keyboard shortcut.