CommandBasic() — ui Function Reference
Architecture documentation for the CommandBasic() function in command-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD d9e32b22_d813_aef8_e8aa_0e0abedf9902["CommandBasic()"] b99aef2d_c05c_2372_1b6a_76f9df348ed1["command-example.tsx"] d9e32b22_d813_aef8_e8aa_0e0abedf9902 -->|defined in| b99aef2d_c05c_2372_1b6a_76f9df348ed1 style d9e32b22_d813_aef8_e8aa_0e0abedf9902 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/examples/command-example.tsx lines 121–150
function CommandBasic() {
const [open, setOpen] = React.useState(false)
return (
<Example title="Basic">
<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>Calendar</CommandItem>
<CommandItem>Search Emoji</CommandItem>
<CommandItem>Calculator</CommandItem>
</CommandGroup>
</CommandList>
</Command>
</CommandDialog>
</div>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does CommandBasic() do?
CommandBasic() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/command-example.tsx.
Where is CommandBasic() defined?
CommandBasic() is defined in apps/v4/registry/bases/base/examples/command-example.tsx at line 121.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free