Measured entry

hextaui-collapsible

accordionminimal-flat

A thin client-side React wrapper around the Radix Collapsible root, trigger, and content primitives. It ships as a shadcn registry TypeScript file, adds a touch interaction utility to the trigger, and depends on Radix plus the project-local cn helper.

Specimen
Harness screenshot of hextaui-collapsible at 375 pixels wide
Harness screenshot at 375 pixels wide. This viewport scrolled sideways.
Harness screenshot of hextaui-collapsible at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of hextaui-collapsible 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-collapsible
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowflagged at 375
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal34.3 KB (99.8 KB build, 65.5 KB baseline)
Bare modeOK
Provider requiredNO
Demo usedwritten from the component source API

Verdict

A dependable but intentionally spare Radix adapter. It builds and mounts cleanly without a provider and showed no accessibility violations, but the tested narrow layout overflowed and the dependency cost is substantial for such a small wrapper. Best for teams already using this stack.

Use it if

  • You need an accessible disclosure primitive that leaves layout and visual styling to the calling screen.
  • Your React app already follows shadcn conventions or can provide the expected cn utility and import alias.
  • You want controlled and uncontrolled open state through the underlying Radix API.

Skip it if

  • You need built-in expand and collapse animation rather than supplying your own styles.
  • You want a complete accordion with multiple coordinated sections and selection rules.
  • Your dependency budget cannot justify adding Radix for a small disclosure behavior.
  • You need a styled, narrow-screen-ready panel without auditing the surrounding width classes.

Install

Installation record for hextaui-collapsible
Declared dependencies@radix-ui/react-collapsible, clsx, tailwind-merge
Missing on installnone
Bare installbuilds and mounts without the shadcn-style helpers
Providerno provider required in the harness

Install the Radix collapsible package, add the cn helper backed by clsx and tailwind-merge, and configure the at-sign import alias or replace it with a relative path. Ensure Tailwind includes the touch-manipulation utility, or substitute equivalent CSS.

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 accordion pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.