Measured entry
ruixen-accordion-indexed
accordionunclassifiedmotion on file
A client-side React accordion that prefixes each row with a padded index and allows one section to be open at a time. It ships as a shadcn registry component and composes the local Accordion primitives plus the cn helper, with Tailwind theme utilities and the declared Radix UI and Lucide dependencies behind that setup.



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 28.58s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/accordion-indexed.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A polished fit for ordered FAQs and process summaries in an existing design system, but not a drop-in primitive. It needs a shadcn-style setup, and the low-contrast text treatments should be corrected before production use.
Use it if
- You need a compact FAQ or process list where a visible sequence matters.
- Your app already uses shadcn-style Accordion primitives, Tailwind theme tokens, and path aliases.
- You want controlled and uncontrolled single-section expansion with a collapsible option.
Skip it if
- You need several sections open at once, since the component fixes the accordion to single selection.
- Your content needs rich React nodes rather than plain text rendered inside a paragraph.
- You cannot revise the muted foreground styling, which produced a serious color-contrast violation.
- You want a dependency-light standalone accordion without local shadcn infrastructure.
Install
| Declared dependencies | lucide-react, 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 |
For a non-shadcn project, add a Radix-backed Accordion wrapper, the cn class-merging helper, Tailwind utilities and matching theme tokens, and Lucide if the wrapper uses its icon. Configure the component and library path aliases or rewrite those imports to local relative paths.
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