command-shortcuts.tsx — ui Source File
Architecture documentation for command-shortcuts.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 91f0c3ba_99bb_d1c4_37a0_70898e54454d["command-shortcuts.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 91f0c3ba_99bb_d1c4_37a0_70898e54454d --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 4544fa74_9b37_0912_c55e_f4ff161b8e83["button"] 91f0c3ba_99bb_d1c4_37a0_70898e54454d --> 4544fa74_9b37_0912_c55e_f4ff161b8e83 5b9f2eec_ad84_d016_9f6b_98f3e6ee2b1a["command"] 91f0c3ba_99bb_d1c4_37a0_70898e54454d --> 5b9f2eec_ad84_d016_9f6b_98f3e6ee2b1a d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 91f0c3ba_99bb_d1c4_37a0_70898e54454d --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 style 91f0c3ba_99bb_d1c4_37a0_70898e54454d 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,
CommandShortcut,
} from "@/examples/base/ui/command"
import { CreditCardIcon, SettingsIcon, UserIcon } from "lucide-react"
export function CommandWithShortcuts() {
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="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-shortcuts.tsx do?
command-shortcuts.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-shortcuts.tsx?
command-shortcuts.tsx defines 1 function(s): CommandWithShortcuts.
What does command-shortcuts.tsx depend on?
command-shortcuts.tsx imports 4 module(s): button, command, lucide-react, react.
Where is command-shortcuts.tsx in the architecture?
command-shortcuts.tsx is located at apps/v4/examples/base/command-shortcuts.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