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.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of ruixen-accordion-indexed at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-accordion-indexed at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-accordion-indexed 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 ruixen-accordion-indexed
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious1
Axe moderate0
Axe minor0
Gzip marginal36.9 KB (102.3 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 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

Installation record for ruixen-accordion-indexed
Declared dependencieslucide-react, radix-ui
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno 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.

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.