Skip to content
Feedback & Data

AccordionMorph

Each row is a pill that morphs into a tinted card as it opens, while its plus folds into a minus. Arrow keys, Home and End move between rows.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
items{ title, content }[]—Rows, top to bottom. Titles must be different.
multiplebooleanfalseLet more than one row stay open.
defaultOpennumber[][]Row numbers open at the start, from 0.
accentstring"#a78bfa"Open row tint and icon colour.
classNamestringglass rowReplaces the row look. Keep corners out of it, they are the morph.