Home / Function/ CommandDemo() — ui Function Reference

CommandDemo() — ui Function Reference

Architecture documentation for the CommandDemo() function in command-demo.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  ff3ce4ac_b332_73cb_67d2_1f33799ae775["CommandDemo()"]
  a048cd0f_db89_8e18_7f07_a29d6b019d4b["command-demo.tsx"]
  ff3ce4ac_b332_73cb_67d2_1f33799ae775 -->|defined in| a048cd0f_db89_8e18_7f07_a29d6b019d4b
  style ff3ce4ac_b332_73cb_67d2_1f33799ae775 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/new-york/internal/sink/components/command-demo.tsx lines 21–62

export function CommandDemo() {
  return (
    <Command className="rounded-lg border shadow-md md:min-w-[450px]">
      <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

Frequently Asked Questions

What does CommandDemo() do?
CommandDemo() is a function in the ui codebase, defined in deprecated/www/registry/new-york/internal/sink/components/command-demo.tsx.
Where is CommandDemo() defined?
CommandDemo() is defined in deprecated/www/registry/new-york/internal/sink/components/command-demo.tsx at line 21.

Analyze Your Own Codebase

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

Try Supermodel Free