<Group>
<Button>Button</Button>
<Button>Another Button</Button>
</Group>Installation
npm
pnpm
yarn
bun
npx shadcn@latest add @dotui/groupUsage
import { Group } from '@/components/ui/group'<Group>
<Button>One</Button>
<Button>Two</Button>
</Group>Anatomy
Group is the container; GroupText renders an inline text segment between controls (prefixes, suffixes, labels).
import { Group, GroupText } from '@/components/ui/group'
;<Group>
<GroupText>Label</GroupText>
<Button>Action</Button>
</Group>Set orientation to "vertical" to stack children instead of the default "horizontal" row.
Examples
Basic Group
Navigation Controls
Chat Interface
Pagination
Design Tools Palette
Split Button with Dropdown
Numeric Field with Controls
W
px
Like Button
Amount Transfer Form
Duration Selector
API Reference
A group represents a set of related UI controls, and supports interactive states for styling.
| Prop | Type | Default | |
|---|---|---|---|
"horizontal" | "vertical" | 'horizontal' | ||
ReactNode | function | — | ||
boolean | — | ||
boolean | — | ||
Last updated on 7/9/2026