Video Thumbnail External Link
The video thumbnail can be used for an image display.
Important Notes:To prevent the presence of a button within the video thumbnail component, do not pass data to either the video.content or button_attributes props.A video thumbnail rendered this way is static and can be passed into another component or element for display purposes.
{% set video_thumbnail %}
{% set image %}
{% include '@bolt-elements-image/image.twig' with {
attributes: {
src: '/images/placeholders/16x9.jpg',
alt: 'A Rock Climber',
loading: 'lazy',
width: 400,
height: 300,
}
} only %}
{% endset %}
{% include '@bolt-components-video-thumbnail/video-thumbnail.twig' with {
content: image
} only %}
{% endset %}
<a href="https://google.com" target="_blank" rel="noopener" aria-label="Link to Video Resource">
{{ video_thumbnail }}
</a>