Home / Function/ CommandGroup() — ui Function Reference

CommandGroup() — ui Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

deprecated/www/registry/default/ui/command.tsx lines 86–95

>(({ className, ...props }, ref) => (
  <CommandPrimitive.Group
    ref={ref}
    className={cn(
      "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
      className
    )}
    {...props}
  />
))

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free