TeaserSplit
===========

*   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-teasersplit--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-split/teaser-split.scss'`

| Name | Description | Default |
|:--- | :--- | :--- |
| title\* | Heading of the teaser<br />string | \- |
| areaType | The area where the column is rendered<br />"main", "bauta" | \- |
| variant | Variant of the teaser<br />"default", "podcast" | \- |
| targetLink | Target URL for the teaser<br />string | \- |
| 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 | \- |
| vignette | Top text in the teaser<br />string | \- |
| media | Main image or other media<br />ComponentChild | \- |
| text | Teaser subtext<br />string | \- |
| sticker | Red text before the text<br />string | \- |
| isFlashingDot | If there should be a flashing ball before the text<br />boolean | \- |
| publicationTime | Publication time text<br />string | \- |
| duration | Duration of podcast<br />string | \- |
| sectionName | Shows in teaser footer<br />string | \- |

```jsx
<TeaserSplit
  isFlashingDot
  media={<TeaserImage byline="Foto: Pavel Bednyakov/Sputnik/AFP" image={<ExamplePicture alt="" className="picture picture--placeholder" src="https://cached-images.bonnier.news/gcs/bilder-lab/dn-mly/fd0abe35-9282-46ed-addc-8af0e471db74.jpeg" style={{aspectRatio: '16 / 9'}}/>}/>}
  sticker="Live"
  targetLink="https://www.dn.se/sverige/ryska-militarflyg-over-ostersjon/"
  text="Flög utan transpondrar • Upptäcktes av tyska flygvapnet."
  title="Ryska militärflyg över Östersjön"
/>
```