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

Relationship Graph

Source Code

apps/v4/examples/radix/ui-rtl/command.tsx lines 119–133

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/examples/radix/ui-rtl/command.tsx.
Where is CommandGroup() defined?
CommandGroup() is defined in apps/v4/examples/radix/ui-rtl/command.tsx at line 119.

Analyze Your Own Codebase

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

Try Supermodel Free