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
  6f788dfb_1764_7998_7ea4_56610a2de460["command-demo.tsx"]
  5b9f2eec_ad84_d016_9f6b_98f3e6ee2b1a["command"]
  6f788dfb_1764_7998_7ea4_56610a2de460 --> 5b9f2eec_ad84_d016_9f6b_98f3e6ee2b1a
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  6f788dfb_1764_7998_7ea4_56610a2de460 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  style 6f788dfb_1764_7998_7ea4_56610a2de460 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {
  Command,
  CommandEmpty,
  CommandGroup,
  CommandInput,
  CommandItem,
  CommandList,
  CommandSeparator,
  CommandShortcut,
} from "@/examples/base/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/base/command-demo.tsx (domain: DocumentationAtlas, subdomain: Changelog, 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