DirektHeader
============

*   GitHub: [BonnierNews/dn-design-system/web/src/components/teaser-onsite](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/direkt-header)
*   Storybook: [DirektHeader](https://designsystem.dn.se/?path=/docs/section-direkt-header--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/direkt-header/direkt-header.scss'`

| Name | Description | Default |
|:--- | :--- | :--- |
| title\* | string | \- |
| subtitle | string | \- |
| pretitle | string | "Direkt" |
| isAnimated | boolean | true |
| renderAsH2 | boolean | false |
| classNames | Ex. "my-special-class"<br />string | \- |
| attributes | Ex. { target: "\_blank", "data-test": "lorem ipsum" }<br />Record<string, unknown> | { } |

```jsx
<DirektHeader
  classNames="test-class"
  subtitle="Följ DN:s direktrapport här"
  title="Senaste nyheterna"
/>
```