masonix
Reference

Masonry Props

Props specific to the lightweight Masonry component.

Masonry accepts all Common Props plus these props.

PropTypeDefaultNotes
enableNativebooleanfalseUses native CSS masonry when supported by the browser.
columnClassNamestring-Class applied to each internal column wrapper in CSS-mode layout.

Native CSS masonry

<Masonry
  enableNative
  items={items}
  columns={3}
  gap={16}
  render={({ data }) => <Card item={data} />}
/>

enableNative is progressive. Browsers without native support use the regular Masonix layout.

Column classes

<Masonry
  items={items}
  columns={3}
  columnClassName="space-y-4"
  render={({ data }) => <Card item={data} />}
/>

Use columnClassName for column-level styling only. Use itemClassName or the card component for item styling.

On this page