Home / Function/ ButtonGroup() — ui Function Reference

ButtonGroup() — ui Function Reference

Architecture documentation for the ButtonGroup() function in button-group.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  472b4441_1bef_d0d8_9775_1554f2779765["ButtonGroup()"]
  3809548d_b98f_4c81_02f1_a87c1e2e9a81["button-group.tsx"]
  472b4441_1bef_d0d8_9775_1554f2779765 -->|defined in| 3809548d_b98f_4c81_02f1_a87c1e2e9a81
  style 472b4441_1bef_d0d8_9775_1554f2779765 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/ui/button-group.tsx lines 24–38

function ButtonGroup({
  className,
  orientation,
  ...props
}: React.ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants>) {
  return (
    <div
      role="group"
      data-slot="button-group"
      data-orientation={orientation}
      className={cn(buttonGroupVariants({ orientation }), className)}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does ButtonGroup() do?
ButtonGroup() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/ui/button-group.tsx.
Where is ButtonGroup() defined?
ButtonGroup() is defined in apps/v4/registry/new-york-v4/ui/button-group.tsx at line 24.

Analyze Your Own Codebase

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

Try Supermodel Free