Measured entry

hextaui-button

buttonminimal-flat

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.

Specimen
Harness screenshot of hextaui-button at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of hextaui-button at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of hextaui-button 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
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical1
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal28.5 KB (93.9 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten 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

Installation record for hextaui-button
Declared dependencies@radix-ui/react-slot
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, 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.

License
MIT
Record published
2026-08-14

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.