Stack

A content container that defines spacing between elements vertically.

Twig Usage
{% include '@bolt-components-stack/stack.twig' with {
  content: 'This is one stack.'
} only %}
Schema
Prop Name Description Type Default Value Option(s)
attributes

A Drupal attributes object. Applies extra HTML attributes to the outer <bolt-stack> tag.

object
spacing

Control the spacing in between items.

string medium
  • xlarge, large, medium, small, xsmall, none
content

Content of the stack.

string , array , object
Install Install
npm install @bolt/components-stack
Dependencies @bolt/core @bolt/lazy-queue