- 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)
- Storybook (Latest): [VideoCaption](https://designsystem-latest.dn.se/?path=/docs/article-videocaption--docs)

----

# VideoCaption

## Parameters

|parameter | type | required | options | default | description |
|:--- | :--- | :--- | :--- | :--- | :--- |
|caption | String | no | | | |
|duration | String | no | | | |
|attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
|classNames | String | no | | | Ex. "my-special-class" |
|forcePx | bool | no | true, false | false | Fixed pixel value is used for typography to prevent scaling based on html font-size |

## 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/video-caption/video-caption.njk' import VideoCaption %}

{{ VideoCaption({
  caption: "Tre år har gått sedan terrordåden i Paris.",
  duration: "47 sek"
}) }}
```

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