CommandWithGroups() — ui Function Reference
Architecture documentation for the CommandWithGroups() function in command-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD ae85a9f1_e1ee_18ce_5293_3669d3e1180a["CommandWithGroups()"] 05451646_c67d_fa9d_bea2_9a9342a11b2c["command-example.tsx"] ae85a9f1_e1ee_18ce_5293_3669d3e1180a -->|defined in| 05451646_c67d_fa9d_bea2_9a9342a11b2c style ae85a9f1_e1ee_18ce_5293_3669d3e1180a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/radix/examples/command-example.tsx lines 213–305
function CommandWithGroups() {
const [open, setOpen] = React.useState(false)
return (
<Example title="With Groups">
<div className="flex flex-col gap-4">
<Button
onClick={() => setOpen(true)}
variant="outline"
className="w-fit"
>
Open Menu
</Button>
<CommandDialog open={open} onOpenChange={setOpen}>
<Command>
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem>
<IconPlaceholder
lucide="CalendarIcon"
tabler="IconCalendar"
hugeicons="CalendarIcon"
phosphor="CalendarBlankIcon"
remixicon="RiCalendarLine"
/>
<span>Calendar</span>
</CommandItem>
<CommandItem>
<IconPlaceholder
lucide="SmileIcon"
tabler="IconMoodSmile"
hugeicons="SmileIcon"
phosphor="SmileyIcon"
remixicon="RiEmotionLine"
/>
<span>Search Emoji</span>
</CommandItem>
<CommandItem>
<IconPlaceholder
lucide="CalculatorIcon"
tabler="IconCalculator"
hugeicons="CalculatorIcon"
phosphor="CalculatorIcon"
remixicon="RiCalculatorLine"
/>
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem>
<IconPlaceholder
lucide="UserIcon"
tabler="IconUser"
hugeicons="UserIcon"
phosphor="UserIcon"
remixicon="RiUserLine"
/>
<span>Profile</span>
<CommandShortcut>⌘P</CommandShortcut>
</CommandItem>
<CommandItem>
<IconPlaceholder
lucide="CreditCardIcon"
tabler="IconCreditCard"
hugeicons="CreditCardIcon"
phosphor="CreditCardIcon"
remixicon="RiBankCardLine"
/>
<span>Billing</span>
<CommandShortcut>⌘B</CommandShortcut>
</CommandItem>
<CommandItem>
<IconPlaceholder
lucide="SettingsIcon"
tabler="IconSettings"
hugeicons="SettingsIcon"
phosphor="GearIcon"
remixicon="RiSettingsLine"
Domain
Subdomains
Source
Frequently Asked Questions
What does CommandWithGroups() do?
CommandWithGroups() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/command-example.tsx.
Where is CommandWithGroups() defined?
CommandWithGroups() is defined in apps/v4/registry/bases/radix/examples/command-example.tsx at line 213.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free