Masonry

Cards & Layout

A responsive masonry grid that distributes items across columns balanced by height, with staggered entry animations.

Loading preview...

Props

PropTypeDefaultDescription
itemsMasonryItem[]Array of items with id, height, and optional content/image/className.
columnCountnumber0Number of columns. 0 = responsive (1 on mobile, 2 on sm, 3 on md, 4 on lg).
gapnumber16Gap between items in pixels.
animationDurationnumber0.6Duration of the entry animation in seconds.
staggernumber0.05Delay between each item animation in seconds.
scaleOnHoverbooleantrueWhether items scale slightly on hover.
classNamestring''Additional CSS classes for the container.