Measured entry
ruixen-accordion-editorial
accordionunclassifiedmotion on file
A client-side, single-open editorial accordion with oversized muted headings, controlled or uncontrolled state, and replaceable text items. It ships as a shadcn registry source file and depends on the project's Accordion wrapper, cn utility, Tailwind state styling, and the Radix UI package.



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 | 0 |
| Axe serious | 1 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 36.9 KB (102.3 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 26.26s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/accordion-editorial.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A polished, focused choice for editorial FAQs in an existing shadcn codebase. It built, mounted, and stayed within the tested viewports, but the muted text needs a contrast fix. Bare use fails because it needs a shadcn-style setup.
Use it if
- You want a restrained FAQ or principles list where typography carries the visual hierarchy.
- Your app already uses shadcn conventions and can supply its Accordion primitive and utility alias.
- You need either parent-controlled selection or a configurable default open item.
Skip it if
- You need several sections open at the same time, since this component is fixed to single-open behavior.
- You cannot revise the muted foreground colors, which produced a serious contrast violation in the tested theme.
- You want a standalone package that works without shadcn aliases, shared utilities, and Tailwind styling.
Install
| Declared dependencies | radix-ui |
|---|---|
| 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 an equivalent Radix-backed Accordion wrapper, install the Radix UI dependency, provide a class-merging cn helper, configure the import aliases, and reproduce the Tailwind theme tokens and state variants used by the component. Adjust the muted text colors to meet contrast 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/ruixenui/ruixen.comAlternatives
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
- 8bitcn-collapsibleskeuomorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 34.3KB
- 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