{% include '@bolt-components-notifications/notifications.twig' with {
header: {
switch_button: header_switch_button,
actions: header_actions,
},
content: content,
footer: {
content: footer_content,
},
} only %}
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
attributes
|
A Drupal attributes object. Applies extra HTML attributes to the outermost container. |
object
| — |
|
header
|
object
| — |
|
|
footer
|
object
| — |
|
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
attributes
|
A Drupal attributes object. Applies extra HTML attributes to the outermost container. |
object
| — |
|
icon
|
Render an icon for the action. Icon element set to medium size is expected here. |
any
| — |
|
label
|
Render a text label for the action. |
any
| — |
|
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
attributes
|
A Drupal attributes object. Applies extra HTML attributes to the outermost container. |
object
| — |
|
content
|
Render either heading dividers and/or list items. |
any
| — |
|
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
attributes
|
A Drupal attributes object. Applies extra HTML attributes to the outermost container. |
object
| — |
|
signifier
|
Render an icon as a signifier for the notification. |
any
| — |
|
site_name
|
Set the site name that the notification belongs to. |
any
| — |
|
timestamp
|
Set the timestamp of the notification. |
any
| — |
|
message
|
object
| — |
|
|
read
|
boolean
|
false
|
|
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
attributes
|
A Drupal attributes object. Applies extra HTML attributes to the outermost container. |
object
| — |
|
content
|
Render the text label of the heading. |
any
| — |
|
npm install @bolt/components-notifications