- GitHub: [BonnierNews/dn-design-system/../web/src/components/mask](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/mask)
- Storybook: [Subcomponents > Mask](https://designsystem.dn.se/?path=/docs/section-subcomponents-mask--docs)
- Storybook (Latest): [Subcomponents > Mask](https://designsystem-latest.dn.se/?path=/docs/section-subcomponents-mask--docs)

----

# Mask

## Parameters

|parameter | type | required | options | default | description |
|:--- | :--- | :--- | :--- | :--- | :--- |
|imageHtml | HTML String | yes | | | The img element or equivalent to mask |
|variant | String | yes | quiz-mask | quiz-mask | Mask variant |
|classNames | String | no | | | Ex. "my-special-class" |
|attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |

## 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/mask/mask.njk' import Mask %}

{{ Mask({
  variant: "quiz-mask",
  imageHtml: "<img src='cool-pic.jpg'>"
})}}
```

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