ButtonGroup
Group related actions with joined borders and consistent sizing.
Installation
Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.
Copy an example into your project with the shadcn CLI: npx shadcn@latest add https://design.gaudi.site/r/button-group-collection-toolbar.json.
Usage
Examples
Collection toolbar
Counts and labels
Editor header
Inputs and selects
Segmented choices
Split buttons
Steppers and pagination
Toolbars
Vertical groups
API
4 props
Accessibility
Buttons retain independent names and focus targets. Use ToggleGroup when the actions represent a selection.
Related
ToggleGroupSingle or multiple pressed choices for view modes and compact formatting controls.6 examplesDirectionScopes text direction for Gaudi controls that need directional keyboard and placement behavior.DropdownMenuAction menus with keyboard navigation, checkbox choices and destructive actions.8 examplesSelectSelect renders a styled option picker with searchable combobox behavior and multi-select support.20 examplesTooltipBrief contextual help attached to an independently labelled control.4 examplesAvatarProfile images, resilient initials, presence, verification, account menus and collaborator groups. The existing Avatar API and curated patterns share the same image and fallback primitives.10 examples