CommandDemo() — ui Function Reference
Architecture documentation for the CommandDemo() function in command-demo.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD b6bad1f3_2ca0_7e71_3b45_4396d2b8f425["CommandDemo()"] 6f788dfb_1764_7998_7ea4_56610a2de460["command-demo.tsx"] b6bad1f3_2ca0_7e71_3b45_4396d2b8f425 -->|defined in| 6f788dfb_1764_7998_7ea4_56610a2de460 style b6bad1f3_2ca0_7e71_3b45_4396d2b8f425 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/base/command-demo.tsx lines 20–61
export function CommandDemo() {
return (
<Command className="max-w-sm rounded-lg border">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem>
<Calendar />
<span>Calendar</span>
</CommandItem>
<CommandItem>
<Smile />
<span>Search Emoji</span>
</CommandItem>
<CommandItem disabled>
<Calculator />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem>
<User />
<span>Profile</span>
<CommandShortcut>⌘P</CommandShortcut>
</CommandItem>
<CommandItem>
<CreditCard />
<span>Billing</span>
<CommandShortcut>⌘B</CommandShortcut>
</CommandItem>
<CommandItem>
<Settings />
<span>Settings</span>
<CommandShortcut>⌘S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</Command>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does CommandDemo() do?
CommandDemo() is a function in the ui codebase, defined in apps/v4/examples/base/command-demo.tsx.
Where is CommandDemo() defined?
CommandDemo() is defined in apps/v4/examples/base/command-demo.tsx at line 20.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free