Command

Command palette interface for searching, filtering, and executing actions.

Suggestions
Launch⌘L
Search⌘K
Terminal⌘T
Recent
Project AlphaActive
Project Beta

Installation

CLI

Install the component using the StarUI CLI:

star add command

Examples

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
Fix critical bugUrgent
Update documentationPending
Deploy to stagingUrgent
No pending tasks
In Progress
Review pull requestsIn Progress
No tasks in progress
Completed
Write unit testsDone
No completed tasks yet

Command Palette with Actions

Interactive command dialog with real actions: navigation, clipboard operations, and system controls

Navigation
Go to Home
Documentation
GitHub Repository
Utilities
Copy Email⌘C
Copy Share Link⌘L
Export DataCSV
System
Toggle Dark Mode⌘D
Sign Out

Compact Context Menu

Small command menu for context-specific actions, perfect for dropdowns and right-click menus

Item Actions
Edit⌘E
Duplicate⌘D
Archive
Share
Copy Link
Email
Send to Slack
DeleteDel

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