command-basic.tsx — ui Source File
Architecture documentation for command-basic.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 57b75b52_fb41_3eff_cb8d_2f007aee58c9["command-basic.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 57b75b52_fb41_3eff_cb8d_2f007aee58c9 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 4b1d2128_46d9_46f0_b915_b6e1925b7876["button"] 57b75b52_fb41_3eff_cb8d_2f007aee58c9 --> 4b1d2128_46d9_46f0_b915_b6e1925b7876 6bfe636e_b01e_60f8_51ec_ace45a509cd7["command"] 57b75b52_fb41_3eff_cb8d_2f007aee58c9 --> 6bfe636e_b01e_60f8_51ec_ace45a509cd7 style 57b75b52_fb41_3eff_cb8d_2f007aee58c9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { Button } from "@/examples/radix/ui/button"
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
} from "@/examples/radix/ui/command"
export function CommandBasic() {
const [open, setOpen] = React.useState(false)
return (
<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>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- command
- react
Source
Frequently Asked Questions
What does command-basic.tsx do?
command-basic.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, SearchAPI subdomain.
What functions are defined in command-basic.tsx?
command-basic.tsx defines 1 function(s): CommandBasic.
What does command-basic.tsx depend on?
command-basic.tsx imports 3 module(s): button, command, react.
Where is command-basic.tsx in the architecture?
command-basic.tsx is located at apps/v4/examples/radix/command-basic.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/radix).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free