Component packs › Flaps › FAQ Fold

FAQ Fold

Answers unfold in two leaves like a paper map: the top swings down while the lower leaf opens from the crease.

FAQ Fold is a FAQ from Flaps, a component pack with 6 disclosure components: Accordions, trees and sidebars whose panels swing open on a real hinge. Price: $2 for the whole pack.

Built with: two-leaf map fold, crease line, several open.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

FAQ Fold props

PropTypeDefaultDescription
itemsFaqItem[]
darkbooleanfollows the pageForce the dark (true) or light (false) look. Default: follows the page.
onToggle(index: number, open: boolean) => void
autoplaynumber | falseShowcase mode: opens or closes a question every N ms while visible.

Methods on the ref

Use it in React

import FaqFold from './FaqFold';

<FaqFold />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Flaps

Good for: Accordions.