Skip to content

Component gallery

  1. Content
  2. Masonry

Primitives

  • Buttons30
  • Badges21
  • Keys4
  • Status8
  • Avatars8
  • Alerts4
  • Cards10
  • Dropdowns4
  • Corner windows3
  • Dialogs7
  • Windows4
  • Taskbar1
  • Launcher1
  • Desk icons1
  • Progress8
  • Scroll cues2

Forms

  • Toggles5
  • Selects3
  • Inputs8
  • Textareas7
  • Segmented controls4
  • Attachments18

Content

  • Quotes5
  • Stats5
  • Heatmap3
  • Icon lists2
  • Masonry2
  • Accordion2
  • Code8
  • Contact methods7

Chat

  • Messages22
  • Posts29

Showcase

  • Media cards4
  • Logos1
  • 88x31s15
  • Carousel3
  • Blueprint frames2
  • Card grids3

Media

  • Figures4
  • Audio player4
  • Media player3
  • Radio5
  • Shorts2

Toys

  • Terminal4
  • Destructor1
  • Status board7

Sections

  • Section3
  • Side hero2
  • Navbar5
  • Footer1
  • Sidebar2

Display

ThemeT
Mode
Mode
M
Style
Style
Y
Spacing
Spacing
Radius
Radius
Font size
Font size
Compare
Compare
Effects
S

ShortcutsAlt+Shift+key

Components

Primitives

  • Buttons30
  • Badges21
  • Keys4
  • Status8
  • Avatars8
  • Alerts4
  • Cards10
  • Dropdowns4
  • Corner windows3
  • Dialogs7
  • Windows4
  • Taskbar1
  • Launcher1
  • Desk icons1
  • Progress8
  • Scroll cues2

Forms

  • Toggles5
  • Selects3
  • Inputs8
  • Textareas7
  • Segmented controls4
  • Attachments18

Content

  • Quotes5
  • Stats5
  • Heatmap3
  • Icon lists2
  • Masonry2
  • Accordion2
  • Code8
  • Contact methods7

Chat

  • Messages22
  • Posts29

Showcase

  • Media cards4
  • Logos1
  • 88x31s15
  • Carousel3
  • Blueprint frames2
  • Card grids3

Media

  • Figures4
  • Audio player4
  • Media player3
  • Radio5
  • Shorts2

Toys

  • Terminal4
  • Destructor1
  • Status board7

Sections

  • Section3
  • Side hero2
  • Navbar5
  • Footer1
  • Sidebar2

Content · 5 of 8

Masonry

Columns of uneven items. `min` sets the narrowest column, `columns` the most there are.

packages/ui/src/astro/blocks/masonry.astro2 stories

Preview settings
Width
Preview width
Stage
Stage
quotes
Props of quotes
<Masonry>
    <Quote author={{ name: "Person 1" }}><p>Short.</p></Quote>
    <Quote author={{ name: "Person 2" }}>
        <p>A quote of middling length, long enough to wrap onto a second line.</p>
    </Quote>
    <Quote author={{ name: "Person 3" }}>
        <p>A much longer quote, to show items keeping their own height. In a grid, the …
    </Quote>
    <Quote author={{ name: "Person 4" }}><p>Another short one.</p></Quote>
    <Quote author={{ name: "Person 5" }}>
        <p>Items read down each column, then across.</p>
    </Quote>
    <Quote author={{ name: "Person 6" }}><p>The last one.</p></Quote>
</Masonry>
Open masonry/quotes on its own

Short.

Person 1

A quote of middling length, long enough to wrap onto a second line.

Person 2

A much longer quote, to show items keeping their own height. In a grid, the other items in its row would stretch to match it and leave blank space at the bottom; here they don't.

Person 3

Another short one.

Person 4

Items read down each column, then across.

Person 5

The last one.

Person 6
two-columns
Props of two-columns
<Masonry columns={2} min="12rem">
    <Quote author={{ name: "Person 1" }}><p>Short.</p></Quote>
    <Quote author={{ name: "Person 2" }}>
        <p>A quote of middling length, long enough to wrap onto a second line.</p>
    </Quote>
    <Quote author={{ name: "Person 3" }}>
        <p>A much longer quote, to show items keeping their own height. In a grid, the …
    </Quote>
    <Quote author={{ name: "Person 4" }}><p>Another short one.</p></Quote>
</Masonry>
Open masonry/two-columns on its own

Short.

Person 1

A quote of middling length, long enough to wrap onto a second line.

Person 2

A much longer quote, to show items keeping their own height. In a grid, the other items in its row would stretch to match it and leave blank space at the bottom; here they don't.

Person 3

Another short one.

Person 4
PreviousIcon listsNextAccordion