command-groups.tsx — ui Source File
Architecture documentation for command-groups.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR b1d09b32_1ea9_fcff_c7ca_dcf315c04054["command-groups.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] b1d09b32_1ea9_fcff_c7ca_dcf315c04054 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 4544fa74_9b37_0912_c55e_f4ff161b8e83["button"] b1d09b32_1ea9_fcff_c7ca_dcf315c04054 --> 4544fa74_9b37_0912_c55e_f4ff161b8e83 5b9f2eec_ad84_d016_9f6b_98f3e6ee2b1a["command"] b1d09b32_1ea9_fcff_c7ca_dcf315c04054 --> 5b9f2eec_ad84_d016_9f6b_98f3e6ee2b1a d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] b1d09b32_1ea9_fcff_c7ca_dcf315c04054 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 style b1d09b32_1ea9_fcff_c7ca_dcf315c04054 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { Button } from "@/examples/base/ui/button"
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from "@/examples/base/ui/command"
import {
CalculatorIcon,
CalendarIcon,
CreditCardIcon,
SettingsIcon,
SmileIcon,
UserIcon,
} from "lucide-react"
export function CommandWithGroups() {
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>
<CalendarIcon />
<span>Calendar</span>
</CommandItem>
<CommandItem>
<SmileIcon />
<span>Search Emoji</span>
</CommandItem>
<CommandItem>
<CalculatorIcon />
<span>Calculator</span>
</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem>
<UserIcon />
<span>Profile</span>
<CommandShortcut>⌘P</CommandShortcut>
</CommandItem>
<CommandItem>
<CreditCardIcon />
<span>Billing</span>
<CommandShortcut>⌘B</CommandShortcut>
</CommandItem>
<CommandItem>
<SettingsIcon />
<span>Settings</span>
<CommandShortcut>⌘S</CommandShortcut>
</CommandItem>
</CommandGroup>
</CommandList>
</Command>
</CommandDialog>
</div>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- command
- lucide-react
- react
Source
Frequently Asked Questions
What does command-groups.tsx do?
command-groups.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-groups.tsx?
command-groups.tsx defines 1 function(s): CommandWithGroups.
What does command-groups.tsx depend on?
command-groups.tsx imports 4 module(s): button, command, lucide-react, react.
Where is command-groups.tsx in the architecture?
command-groups.tsx is located at apps/v4/examples/base/command-groups.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/base).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free