{% include '@bolt-components-broadcast/broadcast.twig' with {
content: content,
video: video,
attributes: {
id: 'broadcast-1',
}
} only %}
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
attributes
|
A Drupal attributes object. Applies extra HTML attributes to the <bolt-broadcast> tag. |
object
| — |
|
content
|
The main broadcast content, usually a layout. |
any
| — |
|
video
|
A Brightcove video that will display inside the broadcast container. |
any
| — |
|
background
|
An absolute positioned element that renders as a background (image, video, or shapes) inside relative positioned containers. |
object
| — |
|
padding_top
|
Set the top padding of the broadcast. |
string
|
medium
|
|
padding_bottom
|
Set the bottom padding of the broadcast. |
string
|
medium
|
|
npm install @bolt/components-broadcast
{% set content %}
{% include '@bolt-elements-button/button.twig' with {
content: 'Play video',
attributes: {
type: 'button',
'data-bolt-broadcast-target': '#broadcast-1',
}
} only %}
{% endset %}
{% set video %}
..
{% endset %}
{% include '@bolt-components-broadcast/broadcast.twig' with {
content: content,
video: video,
attributes: {
class: 't-bolt-gray-xlight',
id: 'broadcast-1',
}
} only %}
padding_top
and padding_bottom
properties from layout available here.
{% include '@bolt-components-broadcast/broadcast.twig' with {
padding_top: 'xlarge',
padding_bottom: 'xlarge',
// ..
} only %}
{% set background %}
{% set image %}
// ..
{% endset %}
{% include '@bolt-components-background/background.twig' with {
opacity: 'heavy',
fill: 'gradient',
items: [
image
]
} only %}
{% endset %}
{% include '@bolt-components-broadcast/broadcast.twig' with {
background: background,
// ..
} only %}
{% include '@bolt-components-broadcast/broadcast.twig' with {
content: content,
background: background,
video: video,
padding_top: 'none',
padding_bottom: 'none',
attributes: {
id: 'broadcast-use-case-1',
class: 't-bolt-dark'
}
} only %}