Measured entry
hextaui-button-group
A React and Tailwind layout primitive that joins controls horizontally or vertically, with optional text and separator helpers. It ships as a shadcn registry TypeScript file and relies on Radix Slot and Separator, class-variance-authority, a cn utility backed by clsx and tailwind-merge, and project theme tokens.



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 | clean at 375, 768, 1440 |
| Axe critical | 2 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 32.4 KB (97.9 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 725ms error during build: [vite]: Rollup failed to resolve import "class-variance-authority" from "<sandbox>re-8cd69aa10d9f/src/cut/components/ui/button-group.tsx".
Verdict
A useful styling primitive for teams already in the shadcn ecosystem, and it builds and mounts without a provider. It does not supply interaction logic, and the accessibility findings make the demo unsuitable as a copy-paste final implementation without semantic review.
Use it if
- You need visually joined actions, segmented choices, or an input with an attached prefix and action.
- Your Tailwind setup already supports shadcn theme tokens, arbitrary selectors, and the cn utility pattern.
- You want a small compositional wrapper while retaining control over the buttons, inputs, and their behavior.
Skip it if
- You need a complete toggle group with selection state, keyboard navigation, or pressed-state semantics built in.
- Your design system does not use Tailwind or shadcn-style aliases and theme tokens.
- You cannot budget an accessibility pass for group semantics and labels, since the tested demo triggered critical ARIA and form-label findings.
Install
| Declared dependencies | @radix-ui/react-slot, @radix-ui/react-separator, 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, add React, Tailwind CSS, class-variance-authority, Radix Slot and Separator, plus clsx and tailwind-merge for the cn helper. Provide a compatible Separator component, map or replace the project aliases, define the referenced theme tokens, and ensure Tailwind scans the copied file.
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 button pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- neu-buttonneumorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 17.8KB
- Bare
- pass
- Prov
- NO
- clay-buttonclaymorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 18.2KB
- Bare
- pass
- Prov
- NO
- tripled-animated-radio-shadcnuiminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 58.2KB
- Bare
- pass
- Prov
- NO
- ruixen-glow-link-buttonliquid-glass
- Renders
- YES
- A11y
- 0
- Gzip
- 58.9KB
- Bare
- pass
- Prov
- NO
- tripled-mood-gradient-button-shadcnuigradient-glow
- Renders
- YES
- A11y
- 0
- Gzip
- 59.2KB
- Bare
- pass
- Prov
- NO
- ruixen-glass-ai-cardliquid-glass
- Renders
- YES
- A11y
- 0
- Gzip
- 59.5KB
- Bare
- pass
- Prov
- NO