Paper Fold Accordion
FAQ rows that open like a folded letter: two creased paper leaves swing open in CSS 3D (the top from its hinge, the bottom a beat later from the crease), shadows lift off the paper as it flattens and the real text settles underneath.
Try it: Click a question to unfold it; ↑ ↓ Home End move between questions.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/paper-fold-accordion.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/paper-fold-accordion. You can also copy the source into components/ui/paper-fold-accordion.tsx (view on GitHub).
Usage
import { PaperFoldAccordion } from '@/components/ui/paper-fold-accordion'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
items | PaperFoldItem[] | DEFAULT_PAPER_FOLD_ITEMS | { id, title, content, meta? } — meta shows as a small pill on wider screens. |
type | 'single' | 'multiple' | 'single' | Keep one panel open, or allow several. |
value / defaultValue / onValueChange | string[] | [first id] | Controlled / uncontrolled open panels. |
headingAs | 'h2' | 'h3' | 'h4' | 'h3' | Heading level wrapping each trigger. |
Dependencies
motionlucide-react
Related Widgets components
- Tear-Stub Boarding Pass
A frosted-glass boarding pass with a perforated stub. Drag the stub away and it resists, tears free with a ragged edge and tumbles out of frame while a "Boarded" stamp thumps onto the pass. Lays out…
- Swing Price Tag
A luxury swing tag hanging from a brass rail on a waxed cord. Brush past it and it swings like a real, lightly damped pendulum that settles and sleeps; tap it and it twirls over to the back for…
- Seat Scale Pricing
One pricing card that morphs through every plan as you drag the team size: avatars pop in seat by seat, the price rolls on odometer reels, the tier badge and accent cross-fade, unlocked features…
- Signal Beam Diagram
An integration map where light travels: sources fire gradient pulses along hairline S-curves into a glass hub, which relays them to destinations. Select a node to isolate its route and read what…
- Polar Bloom Chart
A Nightingale rose that blooms: petals unfurl from the bud one after another, re-grow on springs when you switch datasets, and the hovered or arrow-key focused petal lifts out with a coloured glow…
- World Clock Globe
A dotted planet you can spin, lit by the real sun — the night side dims along a live terminator, a 24-hour ring tracks the chosen city and every card ticks its own local time. Canvas 2D, no map tiles.