Spinner
=======

*   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)

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/spinner/spinner.scss'`

| Name | Description | Default |
|:--- | :--- | :--- |
| variant | "brand", "secondary", "primary", "onBrand", "onBusiness", "staticBlack", "staticWhite" | "primary" |
| size | "small", "large", "xsmall" | "large" |
| forcePx | boolean | \- |
| classNames | Ex. "my-special-class"<br />string | \- |
| attributes | Ex. { target: "\_blank", "data-test": "lorem ipsum" }<br />Record<string, unknown> | \- |

```jsx
<Spinner
  size="large"
  variant="primary"
/>
```