Masonry
Items of different heights in columns with no gaps under the short ones, laid out in reading order, so a keyboard and a screen reader go left to right as the eye does.
Import
import { Masonry } from '@vitral/vue';Cards
Each item goes into the column that is shortest so far. Resize the window: there are as many columns as fit `min-column-width`, and an item that grows (open one) moves the ones under it.
Rice, beans, coffee, lemons.
Open with the stained-glass metaphor. Show tokens before components. End on the theme designer, live, with the audience picking the primary colour.
About the release.
Chapters 4 to 6, and the notes on accessibility of drag and drop — the keyboard part especially.
Tuesday and Thursday.
Book the train to Lisboa. Check the museum hours. Ask Bruno about the restaurant near the river he mentioned.
Water on Sundays.
Rent, internet, the course, and something put aside every month however small.
A fixed number of columns
`columns` fixes the count, and `gap` the space between. Images are measured again as they load.
API
Read from packages/vue/src/components/Masonry/types.ts, so it says what the component actually accepts.
Props
| Name | Type | Description |
|---|---|---|
| columns | number | A fixed number of columns; otherwise as many as fit `minColumnWidth`. |
| minColumnWidth | string | Any CSS length; the theme's (`15rem`) otherwise. |
| gap | string | Any CSS length; the theme's (`1rem`) otherwise. |
Plus pt, dt and unstyled from BaseProps, see pass-through and unstyled mode.
Slots
| Name | Slot props | Description |
|---|---|---|
| default | — | The items, one element each, in reading order. |