Getting Started
A flexible 12-column grid with responsive breakpoint options. Part of the Bolt “Components” CSS framework that powers the Bolt Design System.
Install via NPM
npm install @bolt/components-grid
Usage
{% include "@bolt-components-grid/grid.twig" with {
gutter: "medium",
row_gutter: "medium",
items: [
{
column_start: "1",
column_span: "1",
row_start: "1",
row_span: "1",
valign: "start",
content: "Item Content",
},
]
} only %}
Schema
A flexible 12-column grid with responsive breakpoint options.
Name | Type | Value(s) | Description | Default |
---|---|---|---|---|
attributes | object
| |
A Drupal-style attributes object with extra attributes to append to this component. |
N/A |
gutter | string
|
|
Spacing between the columns of the grid. |
medium
|
row_gutter | string
|
|
Spacing between the rows of the grid. |
medium
|
items | array
|
|
Array of grid items to render inside the grid. |
N/A |