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.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of ruixen-accordion-editorial at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-accordion-editorial at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-accordion-editorial 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-editorial
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 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

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

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.