Group

A group visually groups related UI elements together.

<Group>
  <Button>Button</Button>
  <Button>Another Button</Button>
</Group>

Installation

npx shadcn@latest add @dotui/group

Usage

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

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.

PropType
"horizontal" | "vertical"
ReactNode | function
boolean
boolean

Last updated on 7/9/2026