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
  16bd32e9_5c6d_4c00_329f_a89c9150ae12["CommandGroup()"]
  7a7173b4_d7f5_0575_733b_2098f08eb77d["command.tsx"]
  16bd32e9_5c6d_4c00_329f_a89c9150ae12 -->|defined in| 7a7173b4_d7f5_0575_733b_2098f08eb77d
  style 16bd32e9_5c6d_4c00_329f_a89c9150ae12 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/ui/command.tsx lines 113–127

function CommandGroup({
  className,
  ...props
}: React.ComponentProps<typeof CommandPrimitive.Group>) {
  return (
    <CommandPrimitive.Group
      data-slot="command-group"
      className={cn(
        "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does CommandGroup() do?
CommandGroup() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/ui/command.tsx.
Where is CommandGroup() defined?
CommandGroup() is defined in apps/v4/registry/new-york-v4/ui/command.tsx at line 113.

Analyze Your Own Codebase

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

Try Supermodel Free