Home / File/ command.tsx — ui Source File

command.tsx — ui Source File

Architecture documentation for command.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.

File tsx DocumentationAtlas SearchAPI 6 imports 9 functions

Entity Profile

Dependency Diagram

graph LR
  10857045_23ce_0bc6_2bea_40b3b73a8c34["command.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  10857045_23ce_0bc6_2bea_40b3b73a8c34 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  3d9438e8_7604_787c_4898_907262aff28b["utils"]
  10857045_23ce_0bc6_2bea_40b3b73a8c34 --> 3d9438e8_7604_787c_4898_907262aff28b
  ef356dc8_3581_3cd6_6d52_5bd9073b4f5e["dialog"]
  10857045_23ce_0bc6_2bea_40b3b73a8c34 --> ef356dc8_3581_3cd6_6d52_5bd9073b4f5e
  5a7da2d0_5f0c_be7c_cec3_d1c492aa50f7["input-group"]
  10857045_23ce_0bc6_2bea_40b3b73a8c34 --> 5a7da2d0_5f0c_be7c_cec3_d1c492aa50f7
  b0e1f94c_e859_d22e_53c7_b9827ad91d80["cmdk"]
  10857045_23ce_0bc6_2bea_40b3b73a8c34 --> b0e1f94c_e859_d22e_53c7_b9827ad91d80
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  10857045_23ce_0bc6_2bea_40b3b73a8c34 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  style 10857045_23ce_0bc6_2bea_40b3b73a8c34 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-rtl/dialog"
import { InputGroup, InputGroupAddon } from "@/examples/base/ui-rtl/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)

Subdomains

Dependencies

  • cmdk
  • dialog
  • input-group
  • lucide-react
  • react
  • utils

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-rtl/command.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/base/ui-rtl).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free