- GitHub: [BonnierNews/dn-design-system/../web/src/components/spinner](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/spinner)
- Storybook: [Spinner](https://designsystem.dn.se/?path=/docs/basic-spinner--docs)
- Storybook (Latest): [Spinner](https://designsystem-latest.dn.se/?path=/docs/basic-spinner--docs)
----

# Spinner

## Parameters

|parameter | type | required | options | default | description |
|:--- | :--- | :--- | :--- | :--- | :--- |
|variant | String | no | brand, onBrand, onBusiness, primary, secondary, staticBlack, staticWhite | primary | Design variant |
|size| String | no | large, small, xsmall | large | |
|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/spinner/spinner.njk' import Spinner %}

{{ Spinner({
  variant: "primary",
  size: "small",
  classNames: "my-spinner-class"
})}}
```

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