Home / Function/ CommandItem() — ui Function Reference

CommandItem() — ui Function Reference

Architecture documentation for the CommandItem() function in command.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  9ca4fe5c_902b_b01e_6d5b_9bdd52bf83d7["CommandItem()"]
  ba6c0424_1e33_efc2_5b1d_83fec08894aa["command.tsx"]
  9ca4fe5c_902b_b01e_6d5b_9bdd52bf83d7 -->|defined in| ba6c0424_1e33_efc2_5b1d_83fec08894aa
  style 9ca4fe5c_902b_b01e_6d5b_9bdd52bf83d7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/default/ui/command.tsx lines 114–123

>(({ className, ...props }, ref) => (
  <CommandPrimitive.Item
    ref={ref}
    className={cn(
      "relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
      className
    )}
    {...props}
  />
))

Subdomains

Frequently Asked Questions

What does CommandItem() do?
CommandItem() is a function in the ui codebase, defined in deprecated/www/registry/default/ui/command.tsx.
Where is CommandItem() defined?
CommandItem() is defined in deprecated/www/registry/default/ui/command.tsx at line 114.

Analyze Your Own Codebase

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

Try Supermodel Free