Measured entry
hextaui-toggle-group
A client-side React toggle group for single or multiple selection, shipped as a shadcn registry TypeScript component. It wraps Radix Toggle Group, reuses a separate toggle component for variants, and relies on the cn utility, class variance authority, clsx, tailwind-merge, and Tailwind classes.



Measured
Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | flagged at 375 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 38.8 KB (104.3 KB build, 65.5 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written from the component source API |
What the harness recorded
BARE BUILD
✗ Build failed in 998ms error during build: [vite]: Rollup failed to resolve import "class-variance-authority" from "<sandbox>re-926111da46bf/src/components/ui/toggle.tsx".
Verdict
A solid Radix-based choice control once it is inside its intended design system, with a clean mount and no detected accessibility violations. It needs a shadcn-style setup and does not work bare because its shared toggle dependency expects class variance authority and project aliases.
Use it if
- You need an accessible toolbar-style choice control with single and multiple selection modes.
- Your project already follows shadcn conventions for component aliases, shared variants, and Tailwind utilities.
- You want grouped outline toggles with consistent sizing and optional spacing.
Skip it if
- Your control must fit a narrow viewport without adjusting the demo container or allowing wrapping.
- You want a standalone dependency-light component with no shared toggle module or utility aliases.
- You need native form submission behavior without adding hidden inputs or state synchronization.
Install
| Declared dependencies | @radix-ui/react-toggle-group, @radix-ui/react-toggle, clsx, tailwind-merge |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no provider required in the harness |
In a non-shadcn project, install Radix Toggle Group, Radix Toggle, class variance authority, clsx, and tailwind-merge. Add the cn helper, copy the shared toggle component, replace the project aliases with local paths, and ensure Tailwind processes the supplied utility classes.
Source and credit
This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.
Author repository
github.com/preetsuthar17/HextaUIAlternatives
Other published entries for the switch pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- neu-toggleneumorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 17.8KB
- Bare
- pass
- Prov
- NO
- clay-toggleclaymorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 18.2KB
- Bare
- pass
- Prov
- NO
- ruixen-scrub-datetimeunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 22.2KB
- Bare
- pass
- Prov
- NO
- shadcn-switchunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 34.4KB
- Bare
- pass
- Prov
- NO
- hextaui-switchminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 34.5KB
- Bare
- pass
- Prov
- NO
- hextaui-tabsminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 39.0KB
- Bare
- pass
- Prov
- NO