- GitHub: [BonnierNews/dn-design-system/../web/src/components/teaser-longlife](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-longlife)
- Storybook: [TeaserRightNow](https://designsystem.dn.se/?path=/docs/section-teaserlonglife--docs)
- Storybook (Latest): [TeaserRightNow](https://designsystem-latest.dn.se/?path=/docs/section-teaserlonglife--docs)

----

# teaser-longlife

## Parameters

|parameter | type | required | options | default | description |
|:--- | :--- | :--- | :--- | :--- | :--- |
|title | String | yes | | | Heading of the teaser |
|targetLink | String | yes | | | Target URL for the teaser |
|vignette | String | no | | | Top text in the teaser |
|mediaHtml | HTML String | no | | | Main image or other media |
|attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
|classNames | String | no | | | Ex. "my-special-class" |
|~forcePx~ | | | | | Not supported |

## Minimum requirement example

### Nunjucks

These are copy paste friendly examples to quickliy get started using a component.

```html
{% from '@bonniernews/dn-design-system-web/components/teaser-longlife/teaser-longlife.njk' import TeaserLonglife %}

{{ TeaserLonglife({
  title: 'Susa fram på DN-elcykeln',
  targetLink: 'https://dngranskar.dn.se',
  vignette: 'Beställ DN-cykeln',
  mediaHtml: 'image-html',
})}}
```

### SCSS
```scss
@use "@bonniernews/dn-design-system-web/components/teaser-longlife/teaser-longlife" as *;
```
