{% include '@bolt-components-banner/banner.twig' with {
content: 'This is the banner content.'
} only %}
kebab-case
.
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
attributes
|
A Drupal attributes object. Applies extra HTML attributes to the outer <bolt-menu> tag. |
object
| — |
|
content
*
|
Renders the content of the banner. While any element can be passed, only text and links are recommended because banner messages are supposed to be concise. |
any
| — |
|
status
|
Sets the status that the banner is trying to convey. |
string
|
information
|
|
align
|
Sets the text alignment of the content. |
string
|
center
|
|
npm install @bolt/components-banner
<bolt-banner>
in the markup to make it render.
<bolt-banner>
This is a banner
</bolt-banner>
<bolt-banner status="success" align="start">
You passed this challenge on <strong>May 21, 2020</strong>. <a href="https://google.com" class="e-bolt-text-link">View Details</a>
</bolt-banner>