Skip to content
Interactive

ImageAccordion

A row of image slices. Hover, tap or tab to one and it opens wide while the others fold down to a side title. Stacks by itself in a narrow space.

Download
  • React
  • Tailwind CSS v4

Props

NameTypeDefaultWhat it does
itemsImageAccordionItem[]—Panels: id, title, caption and media. Media sits inside a button, so no links there.
startnumber0Index of the panel open at the start.
grownumber4How many times wider the open panel grows.
classNamestring"h-80"Set a height here. Panels sit side by side above 448px.