Skip to content
Interactive

ExpandableGrid

Open a tile and it takes the whole row while the other tiles slide around it. One opens at a time. Esc closes and puts the focus back on its tile.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
itemsExpandableGridItem[]โ€”Tiles: id, title, summary, media and content. Links go in content, not media.
startstring | nullnullid of the tile open at the start.
minWidthnumber200Smallest tile width in pixels. The grid fits as many columns as it can.
cardClassNamestringdark cardLook of each tile.
classNamestring"gap-3"On the grid. Set the gap and width here.