crucıble

Assay FAQ

A disclosure-semantic FAQ accordion: measured height animation via motion, a hairline amber heat-line down the open item's left edge, and a plus indicator that rotates with a brief ember-glow on toggle. Arrow-key/Home/End focus movement between questions, one open at a time by default with an allowMultiple knob, instant open/close with no glow under reduced motion.

motionpro

Installation

CLI

npx shadcn@latest add @crucible/assay-faq

Manual — install dependencies, then copy the source

npm install motion

Props

PropTypeDefaultDescription
headingstring"FAQ"Section heading rendered as an h2.
itemsAssayFaqItem[]the six Forgewright FAQsQuestion/answer pairs, rendered in order.
allowMultiplebooleanAllow several items open at once. When false (default), opening an item closes the previous one.
defaultOpenIndexnumber0Index of the item open on mount. Pass -1 to start fully closed.
Also accepts all props of React.ComponentPropsWithoutRef<"section">they pass through to the underlying element.

Honors prefers-reduced-motion with a designed static fallback, and passes className through.