Overview
Band is a general content container with spacing and background options. Part of the Bolt Design System.
Install via NPM
npm install @bolt/components-band
Usage
{% include "@bolt-components-band/band.twig" with {
content: "This is a band.",
} 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-style attributes object with extra attributes to append to this component. |
object
| — |
|
|
Main content of the band. |
string , array , object |
— |
|
|
Pinned content of the band. |
object
| — |
|
|
Controls the semantic HTML tag to use for the band's content. |
string
|
div
|
|
|
Controls the vertical spacing of the band. |
string
|
medium
|
|
|
If set to true, the band will take the full width of the page. |
boolean
|
true
|
|
|
Controls the theme of the band. |
string
|
dark
|
|
|
Please use |
| — |
|
|
Please use |
| — |
|
|
Please use |
| — |
|
|
This prop has been renamed. Please use |
| — |
|
|
This prop is no longer needed. |
| — |
|