Recommended | Not Recommended |
---|---|
Prioritize Relevance: Make sure the teaser's content is a direct and compelling representation of the linked resource or external content it leads to. | Avoid Distractors: Skip additional links or CTAs within the teaser. The entire block serves as a single CTA, and multiple actions can confuse the user. |
Entice but Don't Overshare: Include just enough detail to spark interest and provoke a click-through. Don't give away everything, maintaining a level of curiosity. | No Mixed Messages: Ensure the teaser content directly correlates with the destination it points to, avoiding any misleading or irrelevant information. |
Balance Text and Imagery: Use a harmonious blend of text and visuals to represent the content effectively, ensuring neither overpowers the other. | Don't Clutter: Keep the content streamlined. Overloading the teaser with too much text, imagery, or icons can dilute its purpose and make it less effective. |
{% include '@bolt-components-teaser/teaser.twig' with {
signifier: image,
headline: {
text: 'Some awesome Title',
link_attributes: {
href: 'https://www.google.com',
target: '_blank',
rel: 'noopener'
}
},
} %}
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
attributes
|
A Drupal-style attributes object with extra attributes to append to this component. |
object
| — |
|
layout
|
Set the layout of the teaser based on the use case. |
string
|
vertical
|
|
gutter
|
Set the spacing in between columns for horizontal and responsive layouts. |
string
|
medium
|
|
signifier
|
Set the signifier for the teaser. It accepts plain element, the Image component, and the Icon element. |
object
| — |
|
eyebrow_text
|
Set the helper info above the headline. |
string
| — |
|
headline
|
Set the headline text, size, and the block link that covers the entire teaser. |
object
| — |
|
subheadline
|
Set the subheadline text and size. |
object
| — |
|
description
|
Set a brief description of the resource. |
object
| — |
|
time
|
Use for PDF/articles teasers for estimating reading time. If you choose Video Thumbnail as a signifier do not use this prop since it will conflict with the Video Thumbnail`s |
string
| — |
|
like
|
Render the like button. Link element is expected here. |
object
| — |
|
share
|
Render the share button. Share menu is expected here. |
object
| — |
|
download
|
Render the download link. Link element is expected here. |
object
| — |
|
chip_list
|
Render a list of related chips for the resource. Passing the Chip List component is mandatory. |
object
| — |
|
status
|
object
| — |
|
|
variant
|
Set the style variant of the teaser. |
string
|
transparent
|
|
spacing
|
This works only with the card variant teaser. Set spacing around the component content |
string
|
small
|
|
border_radius
|
This works only with the card variant teaser. Set rounded corners on the component. Note: the value none is deprecated, use small (default) and large instead. |
string
|
small
|
|
no_aspect_ratio
|
By default teaser signifiers have predefined aspect ratios (16/9 or 1/1). Set this prop to true if signifiers should not have predefined aspect ratios but auto rendered aspect ratio. |
boolean
|
false
|
|
valign
|
Control the vertical alignment of items. |
string
|
center
|
|
type
(deprecated) |
This prop is deprecated, please stop using it. Instead of |
string
| — |
|
npm install @bolt/components-teaser