ToggleGroup
Single or multiple pressed choices for view modes and compact formatting controls.
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/toggle-group-filters.json.
Usage
Examples
Filters
Icon and label switchers
Group variants, spacing, sizes and orientation
Toggle that swaps icon and label
Reactions and counts
Toggle variants, sizes and states
API
9 props
Accessibility
Each item communicates its pressed state. Choose radio controls when a form requires exactly one persistent choice.
Related
TooltipBrief contextual help attached to an independently labelled control.4 examplesPillPill renders compact category and status labels.4 examplesAspectRatioKeep media at a stable aspect ratio as its container resizes.1 exampleAvatarProfile 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 examplesButtonButton renders the Gaudi action and link-button variants.7 examplesButtonGroupGroup related actions with joined borders and consistent sizing.9 examples