VideoCaption
============

*   GitHub: [BonnierNews/dn-design-system/web/src/components/video-caption](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/video-caption)
*   Storybook: [VideoCaption](https://designsystem.dn.se/?path=/docs/article-videocaption--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/video-caption/video-caption.scss'`

| Name | Description | Default |
|:--- | :--- | :--- |
| caption | Ex: "Detta är en bildtext"<br />string | \- |
| duration | Ex: "01:23"<br />string | \- |
| forcePx | boolean | \- |
| classNames | Ex. "my-special-class"<br />string | \- |
| attributes | Ex. { target: "\_blank", "data-test": "lorem ipsum" }<br />Record<string, unknown> | \- |

```jsx
<VideoCaption
  caption="Tre år har gått sedan terrordåden i Paris. 130 människor dog och hundratals skadades i attackerna. Nu inför Frankrike omstridda antiterrorlaga"
  duration="47 sek"
/>
```