command.tsx — ui Source File
Architecture documentation for command.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 191b7c88_cdb7_116e_59cb_2e77505bc304["command.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 191b7c88_cdb7_116e_59cb_2e77505bc304 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 3d9438e8_7604_787c_4898_907262aff28b["utils"] 191b7c88_cdb7_116e_59cb_2e77505bc304 --> 3d9438e8_7604_787c_4898_907262aff28b 1302ba46_078b_fe14_24f5_044257f9b4d6["dialog"] 191b7c88_cdb7_116e_59cb_2e77505bc304 --> 1302ba46_078b_fe14_24f5_044257f9b4d6 4a37d855_5768_bc5a_31ae_9f42eba9091a["input-group"] 191b7c88_cdb7_116e_59cb_2e77505bc304 --> 4a37d855_5768_bc5a_31ae_9f42eba9091a b0e1f94c_e859_d22e_53c7_b9827ad91d80["cmdk"] 191b7c88_cdb7_116e_59cb_2e77505bc304 --> b0e1f94c_e859_d22e_53c7_b9827ad91d80 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 191b7c88_cdb7_116e_59cb_2e77505bc304 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 style 191b7c88_cdb7_116e_59cb_2e77505bc304 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { cn } from "@/examples/base/lib/utils"
import {
Dialog,
DialogContent,
DialogDescription,
DialogHeader,
DialogTitle,
} from "@/examples/base/ui/dialog"
import { InputGroup, InputGroupAddon } from "@/examples/base/ui/input-group"
import { Command as CommandPrimitive } from "cmdk"
import { CheckIcon, SearchIcon } from "lucide-react"
function Command({
className,
...props
}: React.ComponentProps<typeof CommandPrimitive>) {
return (
<CommandPrimitive
data-slot="command"
className={cn(
"bg-popover text-popover-foreground flex size-full flex-col overflow-hidden rounded-xl! p-1",
className
)}
{...props}
/>
)
}
function CommandDialog({
title = "Command Palette",
description = "Search for a command to run...",
children,
className,
showCloseButton = false,
...props
}: Omit<React.ComponentProps<typeof Dialog>, "children"> & {
title?: string
description?: string
className?: string
showCloseButton?: boolean
children: React.ReactNode
}) {
return (
<Dialog {...props}>
<DialogHeader className="sr-only">
<DialogTitle>{title}</DialogTitle>
<DialogDescription>{description}</DialogDescription>
</DialogHeader>
<DialogContent
className={cn(
"top-1/3 translate-y-0 overflow-hidden rounded-xl! p-0",
className
)}
showCloseButton={showCloseButton}
>
{children}
</DialogContent>
// ... (133 more lines)
Domain
Subdomains
Functions
Dependencies
- cmdk
- dialog
- input-group
- lucide-react
- react
- utils
Source
Frequently Asked Questions
What does command.tsx do?
command.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.tsx?
command.tsx defines 9 function(s): Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut.
What does command.tsx depend on?
command.tsx imports 6 module(s): cmdk, dialog, input-group, lucide-react, react, utils.
Where is command.tsx in the architecture?
command.tsx is located at apps/v4/examples/base/ui/command.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/base/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free