Home / File/ command-demo.tsx — ui Source File

command-demo.tsx — ui Source File

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

File tsx DocumentationAtlas Changelog 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  e4007e9a_5ff8_e1e6_9f99_056b76884755["command-demo.tsx"]
  6bfe636e_b01e_60f8_51ec_ace45a509cd7["command"]
  e4007e9a_5ff8_e1e6_9f99_056b76884755 --> 6bfe636e_b01e_60f8_51ec_ace45a509cd7
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  e4007e9a_5ff8_e1e6_9f99_056b76884755 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  style e4007e9a_5ff8_e1e6_9f99_056b76884755 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {
  Command,
  CommandEmpty,
  CommandGroup,
  CommandInput,
  CommandItem,
  CommandList,
  CommandSeparator,
  CommandShortcut,
} from "@/examples/radix/ui/command"
import {
  Calculator,
  Calendar,
  CreditCard,
  Settings,
  Smile,
  User,
} from "lucide-react"

export function CommandDemo() {
  return (
    <Command className="max-w-sm rounded-lg border">
      <CommandInput placeholder="Type a command or search..." />
      <CommandList>
        <CommandEmpty>No results found.</CommandEmpty>
        <CommandGroup heading="Suggestions">
          <CommandItem>
            <Calendar />
            <span>Calendar</span>
          </CommandItem>
          <CommandItem>
            <Smile />
            <span>Search Emoji</span>
          </CommandItem>
          <CommandItem disabled>
            <Calculator />
            <span>Calculator</span>
          </CommandItem>
        </CommandGroup>
        <CommandSeparator />
        <CommandGroup heading="Settings">
          <CommandItem>
            <User />
            <span>Profile</span>
            <CommandShortcut>⌘P</CommandShortcut>
          </CommandItem>
          <CommandItem>
            <CreditCard />
            <span>Billing</span>
            <CommandShortcut>⌘B</CommandShortcut>
          </CommandItem>
          <CommandItem>
            <Settings />
            <span>Settings</span>
            <CommandShortcut>⌘S</CommandShortcut>
          </CommandItem>
        </CommandGroup>
      </CommandList>
    </Command>
  )
}

Subdomains

Functions

Dependencies

  • command
  • lucide-react

Frequently Asked Questions

What does command-demo.tsx do?
command-demo.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in command-demo.tsx?
command-demo.tsx defines 1 function(s): CommandDemo.
What does command-demo.tsx depend on?
command-demo.tsx imports 2 module(s): command, lucide-react.
Where is command-demo.tsx in the architecture?
command-demo.tsx is located at apps/v4/examples/radix/command-demo.tsx (domain: DocumentationAtlas, subdomain: Changelog, 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