Measured entry
hextaui-button
A shadcn registry React button built with Tailwind utility classes and class-variance-authority. It ships as source, offers visual and size variants plus Radix Slot composition, and expects a local cn helper, theme tokens, and the project alias used by shadcn layouts.



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 | 1 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 28.5 KB (93.9 KB build, 65.4 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 27.59s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/components/ui/button.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A solid, conventional primitive for an existing shadcn-style design system, with flexible variants and composition. It needs a shadcn-style setup to mount; the bare project fails on its expected local utility import. The empty harness demo also exposes a critical missing accessible name, so consumers must always provide text or a label.
Use it if
- You already use a shadcn-style Tailwind setup and want a conventional variant-based button primitive.
- You need asChild composition for links or other elements through Radix Slot.
- You want sensible button defaults such as an explicit button type, focus treatment, disabled states, and loading semantics.
Skip it if
- Your project does not use Tailwind utilities or shadcn theme tokens.
- You want a dependency-free button without Radix Slot or class-variance-authority.
- You need a drop-in package that works without copying source and supplying local utilities.
- You cannot guarantee visible text or an accessible label for icon-only and empty button uses.
Install
| Declared dependencies | @radix-ui/react-slot |
|---|---|
| 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, Radix Slot, class-variance-authority, Tailwind, the referenced theme tokens, a cn class-merging helper, and an alias that resolves the local utilities import. Ensure every rendered button has discernible text or an accessible label.
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