Suggestions
Recent
Installation
CLI
Install the component using the StarUI CLI:
star add commandExamples
Interactive Task Manager
Command component as a task manager with state transitions. Click tasks to move them: Pending → In Progress → Completed. Add new tasks with Enter (use ! prefix for urgent).
Pending Tasks
In Progress
Completed
Command Palette with Actions
Interactive command dialog with real actions: navigation, clipboard operations, and system controls
Compact Context Menu
Small command menu for context-specific actions, perfect for dropdowns and right-click menus
Item Actions
Share
API Reference
| Component | Description |
|---|---|
Command |
The root command container with search and filtering |
CommandInput |
Search input for filtering command items |
CommandList |
Container for command items and groups |
CommandEmpty |
Empty state when no results match the search |
CommandGroup |
Group related command items with a heading |
CommandItem |
Individual selectable command item with actions |
CommandSeparator |
Visual separator between command groups |
CommandShortcut |
Display keyboard shortcut for a command |
CommandDialog |
Command palette in a modal dialog overlay |