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

----

# teaser-onsite

Also known as "På Plats-puffen".

In the CMS title will be set to a location like "Kiev, Ukraina" or "USA" and text is usually set to some author names like "Jan Banan och Kalle Kula"

## 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 |
|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 quickly get started using a component.

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

{{ TeaserOnSite({
  title: 'Kiev, Ukraina',
  text: 'Henrik Brandão Jönsson och Eduardo Leal'
})}}
```

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