TeaserSwipeCard
===============

*   GitHub: [BonnierNews/dn-design-system/web/src/components/teaser-swipe-card](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-swipe-card)
*   Storybook: [TeaserSwipeCard](https://designsystem.dn.se/?path=/docs/section-teaserlistswipe-teaserswipecard--docs)

The component will not include styling by itself. Make sure to include the right styles for the component. See example below: `@use '@bonniernews/dn-design-system-web/components/teaser-swipe-card/teaser-swipe-card.scss'`

| Name | Description | Default |
|:--- | :--- | :--- |
| variant | Variant of the teaser<br />"default", "insandare", "direkt" | \- |
| time | The timestamp text of the teaser<br />string | \- |
| title\* | Heading of the teaser<br />string | \- |
| targetLink | Target URL for the teaser<br />string | \- |
| areaType | The area where the column is rendered<br />"main", "right", "bauta" | \- |
| classNames | Ex. "my-special-class"<br />string | \- |
| attributes | Ex. { target: "\_blank", "data-test": "lorem ipsum" }<br />Record<string, unknown> | \- |
| theme | The theme-class to apply to the teaser<br />"kultur", "nyheter" | \- |
| highlight | Text before the heading<br />string | \- |
| media | Main image or other media<br />ComponentChild | \- |
| vignette | Top text in the teaser<br />string | \- |

```jsx
<TeaserSwipeCard
  highlight="Live:"
  media={<TeaserImage byline="Foto: Paul Hansen" image={<ExamplePicture alt="Statsminister Magdalena Andersson (S) i en stridsvagn vid ett besök på en övning i nordnorska Narvik den 21 mars." className="picture picture--placeholder" src="https://cached-images.bonnier.news/gcs/bilder/dn-mly/752e4f6d-7c66-4d24-81b1-4b24b12771a9.jpeg?interpolation=lanczos-none&amp;fit=around%7C770:434&amp;crop=770:h;center,top&amp;output-quality=80 770w, https://cached-images.bonnier.news/gcs/bilder/dn-mly/752e4f6d-7c66-4d24-81b1-4b24b12771a9.jpeg?interpolation=lanczos-none&amp;fit=around%7C1010:569&amp;crop=1010:h;center,top&amp;output-quality=80 1010w, https://cached-images.bonnier.news/gcs/bilder/dn-mly/752e4f6d-7c66-4d24-81b1-4b24b12771a9.jpeg?interpolation=lanczos-none&amp;fit=around%7C1540:867&amp;crop=1540:h;center,top&amp;output-quality=60 1540w, https://cached-images.bonnier.news/gcs/bilder/dn-mly/752e4f6d-7c66-4d24-81b1-4b24b12771a9.jpeg?interpolation=lanczos-none&amp;fit=around%7C2020:1137&amp;crop=2020:h;center,top&amp;output-quality=60 2020w' sizes='(min-width: 1340px) 1010px, (min-width: 1100px) calc(100vw - 330px), 100vw" style={{aspectRatio: 1.7777777777777777}}/>}/>}
  time="13:45"
  title="Man bet hund på Kungsgatan"
  vignette="Sverige"
/>
```