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

----

# TeaserSplit

## Parameters

|parameter | type | required | options | default | description |
|:--- | :--- | :--- | :--- | :--- | :--- |
|title | String | yes | | | Heading of the teaser |
|targetLink | String | yes | | | Target URL for the teaser |
|variant | String | no | "default" or "podcast" | "default" | |
|areaType | String | no | "right" or "bauta" | | The area where the column is rendered |
|theme | String | no | nyheter, kultur | (empty) | The theme-class to apply to the teaser |
|text | String | no | | | Teaser subtext |
|vignette | String | no | | | Top text in the teaser |
|highlight | String | no | | | Text before the heading |
|sticker | String | no | | | Red text before the text |
|mediaHtml | HTML String | no | | | Main image or other media |
|isFlashingDot | bool | no | true, false | false | If there should be a flashing ball before the text |
|publicationTime | string | no | | null | Publication time text. |
|duration | string | no | | null | Duration of podcast. |
|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-split/teaser-split.njk" import TeaserSplit %}

{{ TeaserSplit({
  title: "Sju miljoner i humanitärt stöd till Turkiet och Syrien",
  targetLink: "#",
  text: "Tält och temporära nödboenden samt ledningsresurser för att koordinera räddningsarbetet."
})}}
```

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