Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Code Block
- Collapsible
- Combobox
- Command
- Context Menu
- Copy Button
- Data Table
- Date Picker
- Dialog
- Drawer
- Dropdown Menu
- Empty
- Field
- Form
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Kbd
- Label
- Menubar
- Native Select
- Navigation Menu
- Page Header
- Pagination
- Panel
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Section Header
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Stat
- Stat Card
- Switch
- Table
- Tabs
- Textarea
- Theme Toggle
- Toggle
- Toggle Group
- Tooltip
- Typography
Command
Command menu for search and quick actions.
No results found.
Suggestions
Calendar
Search
Settings
Profile
Settings
01
Installation
Add the command component with the shadcn CLI.
bash
npx shadcn@latest add https://swiss.ui.unsanity.ai/r/command.json02
Usage
tsx
import { Command } from "@/components/ui/command"03
Examples
Default
No results found.
Suggestions
Calendar
Search
Settings
Profile
Settings
import { CalendarIcon, SearchIcon, SettingsIcon, UserIcon } from "lucide-react"
import {
Command,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
} from "@/components/ui/command"
<Command className="w-72 border border-border">
<CommandInput placeholder="Type a command..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem><CalendarIcon />Calendar</CommandItem>
</CommandGroup>
</CommandList>
</Command>