React Basic Button Group
Basic button group with horizontal layout and size variants demonstrating fundamental grouping
Looking to implement shadcn/ui patterns?
Join our Discord community for help from other developers.
Button groups unify related actions—visual connection improves scannability. This React component combines shadcn/ui's Button and ButtonGroup components creating cohesive action sets with shared borders. Built on Radix UI with variant="outline" and three size variants (sm, default, lg), the pattern demonstrates foundational button grouping across different scales. Perfect for toolbars with related actions, form button groups (Save/Cancel/Delete), content manipulation controls, or any interface needing visually unified button sets—button groups create clear action relationships through connected borders, size consistency ensures visual harmony, outline variant provides neutral styling. The pattern establishes the basic building block for more complex grouped button interactions.
Pattern created by @haydenbleasel
Installation
npx shadcn@latest add https://www.shadcn.io/registry/button-group-standard-1.json
npx shadcn@latest add https://www.shadcn.io/registry/button-group-standard-1.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/button-group-standard-1.json
bunx shadcn@latest add https://www.shadcn.io/registry/button-group-standard-1.json
Related patterns you will also like
Vertical Button Group
Vertical orientation variant
Button Group Variants
Different styling options
Outline Button
Border-style button variant
Action Group
CRUD operation buttons
Toggle Group
Segmented toggle controls
Secondary Button
Alternative button styling