Skip to content

Masonry

Structures children (often Cards) in a masonry.

Card
Big
card
Big
card
Card
---
import { Card, Masonry } from 'fulldev-ui'
---
<Masonry>
<Card>Card</Card>
<Card>Big <br /> card </Card>
<Card>Big <br /> card </Card>
<Card>Card</Card>
</Masonry>

Props

size

Type: size?: 'sm' | 'md' | 'lg'

Sets the size for this component and all its children.

theme

Type: theme?: 'light' | 'dark' | string

Changes the colors for this component and all its children.

Choose a predefined theme, or a custom value defined like explained in the theming guide.

as & HTML Attributes

Type: as?: HTMLTag = 'div'

Used to determine which HTML tag is used to render the component.

Based on the value, all HTML attributes of this tag are accepted as props too.

For a detailed explanation see Polymorphic props in the Astro documentation.