Measured entry

hextaui-button-group

buttonminimal-flat

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.

Specimen
Harness screenshot of hextaui-button-group at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of hextaui-button-group at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of hextaui-button-group at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

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.

Harness measurements recorded for hextaui-button-group
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical2
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal32.4 KB (97.9 KB build, 65.5 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten 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

Installation record for hextaui-button-group
Declared dependencies@radix-ui/react-slot, @radix-ui/react-separator, clsx, tailwind-merge
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno 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.

License
MIT
Record published
2026-08-16

Alternatives

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.