Vivid API

Layout

Easily arrange elements in a grid using CSS grid layout and predefined sizes and spaces.

Column Spacing

Use the column-spacing attribute to choose a predefined value for the column-gap.

Row Spacing

Use the row-spacing attribute to choose a predefined value for the row-gap.

Column Basis

Use the column-basis attribute to control the min-width of columns. Use block to get full-width elements stacking one after the other.

Auto Sizing

The auto-sizing attribute controls how the grid’s behaves with empty column tracks.

The grid container creates as many column tracks as possible without overflowing the container.

With fit, when there are not enough grid items to fill the number of tracks created, those empty tracks are collapsed.

With fill, the empty tracks remain and take up space in the layout.

With fill, everything is the same as fit, except empty tracks are not collapsed.

Gutters

Use the gutters attribute to add a margin to the component.