Measured entry
8bitcn-collapsible
A client-side collapsible shipped as a shadcn registry component with a companion retro stylesheet. It wraps Radix Collapsible primitives, uses a shadcn-style cn utility backed by clsx and tailwind-merge, and imports Press Start 2P from Google Fonts.



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 | flagged at 375 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 34.3 KB (99.8 KB build, 65.5 KB baseline) |
| Bare mode | OK |
| Provider required | NO |
| Demo used | written from the component source API |
Verdict
A sound Radix-based disclosure primitive for an established retro UI, with clean mounting and no provider requirement. Its value is mostly the pixel font treatment, so teams still need to supply the visual shell and make responsive sizing choices.
Use it if
- You need an accessible show-and-hide control with controlled and uncontrolled state support.
- Your interface already uses pixel-art typography and can load the bundled Google font stylesheet.
- You want bare Radix primitives that can be styled per trigger and content region.
Skip it if
- Your narrow layouts rely on the supplied fixed-width example, which overflowed its compact viewport.
- Your product cannot make a runtime request to Google Fonts or needs dependable offline typography.
- You expect a complete accordion treatment with built-in borders, state indicators, or transition styling.
- You want to avoid adding Radix and utility-merging dependencies for a small disclosure control.
Install
| Declared dependencies | radix-ui, clsx, tailwind-merge |
|---|---|
| Missing on install | none |
| Bare install | builds and mounts without the shadcn-style helpers |
| Provider | no provider required in the harness |
In a non-shadcn project, add the Radix collapsible package, clsx, and tailwind-merge; provide a compatible cn helper and path aliases or rewrite the imports. Copy the retro stylesheet, ensure Tailwind utility classes are available, and decide whether the Google Fonts import fits your privacy and offline requirements.
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/TheOrcDev/8bitcn-uiAlternatives
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.
- neobrutalism-collapsiblebrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 22.1KB
- Bare
- pass
- Prov
- NO
- shadcn-collapsibleunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 22.1KB
- Bare
- pass
- Prov
- NO
- hextaui-collapsibleminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 34.3KB
- Bare
- pass
- Prov
- NO
- hextaui-ai-citationsminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 35.6KB
- Bare
- fail
- Prov
- NO
- neobrutalism-accordionbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 35.7KB
- Bare
- fail
- Prov
- NO
- shadcn-accordionunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 35.8KB
- Bare
- fail
- Prov
- NO