Component packs › Flaps › Hinged Accordion

Hinged Accordion

Each panel swings down from its header on a 3D hinge, in shade until it faces you, and the sections below make room on the same spring.

Hinged Accordion is an accordion 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: hinge spring, projected-height reflow, light and shade.

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.

Hinged Accordion props

PropTypeDefaultDescription
sectionsHingedSection[]
opennumberIndex open at start, or -1.
multiplebooleanfalseAllow several open at once. Default false.
darkbooleanfollows the pageForce the dark (true) or light (false) look. Default: follows the page.
onToggle(index: number, open: boolean) => void
autoplaynumber | falseShowcase mode: opens the next section every N ms while visible.

Methods on the ref

Use it in React

import HingedAccordion from './HingedAccordion';

<HingedAccordion />

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

More in Flaps

Good for: Accordions.