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

----

# teaser-centered

## Parameters

|parameter | type | required | options | default | description |
|:--- | :--- | :--- | :--- | :--- | :--- |
|title | String | yes | | | Heading of the teaser |
|targetLink | String | yes | | | Target URL for the teaser |
|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 |
|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-centered/teaser-centered.njk' import TeaserCentered %}

{{ TeaserCentered({
  title: "Upp på börsen",
  text: "Det ser ganska normalt ut på Stockholmsbörsen.",
  highlight: "Ekonominytt:"
})}}
```

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