Measured entry

tripled-animated-accordion-shadcnui

accordionminimal-flatmotion on file

A client-side React FAQ accordion that keeps one panel open at a time, animates panel height and chevron rotation with Framer Motion, and ships through a shadcn registry. The file uses local state, fixed sample content, Lucide icons, Tailwind utility classes, and theme CSS variables; it needs no provider.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of tripled-animated-accordion-shadcnui at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-animated-accordion-shadcnui at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-animated-accordion-shadcnui 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 tripled-animated-accordion-shadcnui
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal60.6 KB (126.0 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 1.03s
error during build:
[vite]: Rollup failed to resolve import "lucide-react" from "<sandbox>re-7f22f63e3506/src/cut/components/uitripled/animated-accordion-shadcnui.tsx".

Verdict

A clean, working single-open accordion with sensible responsive behavior and no provider ceremony. It is a good fit when Framer Motion is already present, but the fixed data and missing reduced-motion and expanded-state details make it a starting point rather than a finished design-system primitive.

Use it if

  • You need a compact FAQ or policy list where only one answer should remain open.
  • Your app already uses Framer Motion and Tailwind, so the animation and styling dependencies are already justified.
  • You want a small component that is easy to adapt by replacing the fixed item list with product copy or props.

Skip it if

  • You need multiple panels open at once, controlled state, or reusable item props without modifying the source.
  • You want a lightweight disclosure and do not otherwise need Framer Motion.
  • Your accessibility standard requires explicit expanded-state relationships or reduced-motion behavior out of the box.
  • Your design system does not use Tailwind utilities or the referenced theme variables.

Install

Installation record for tripled-animated-accordion-shadcnui
Declared dependenciesframer-motion, 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

In a non-shadcn project, add React, Framer Motion, Lucide React, and Tailwind support, then define the card background, accent color, and foreground theme variables or replace those styles. Copy the component into a client-rendered boundary. The registry names a button primitive, but this source file does not import it.

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.