Overview
A container component that defines spacing between elements vertically.. Part of the collection of components, visual styles, and build tools that power the the Bolt Design System.
Install via NPM
npm install @bolt/components-stack
Usage
{% include "@bolt-components-stack/stack.twig" with {
content: "This is one stack."
} only %}
Schema
Note: when assigning component props as HTML attributes on a web component, make sure to use kebab-case
.
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
|
A Drupal attributes object. Used to apply with extra HTML attributes to the outer <bolt-stack> tag. |
object
| — |
|
|
Control the spacing in between items. |
string
|
medium
|
|
|
Content of the stack. |
string or array or object |
— |
|