Checkbox
========

*   GitHub: [BonnierNews/dn-design-system/web/src/components/checkbox](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/checkbox)
*   Storybook: [Checkbox](https://designsystem.dn.se/?path=/docs/basic-form-checkbox--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/checkbox/checkbox.scss`

| Name | Description | Default |
|:--- | :--- | :--- |
| error | boolean | \- |
| errorMessage | string | \- |
| label | string | \- |
| stripLabel | boolean | \- |
| checked | boolean | \- |
| required | boolean | \- |
| disabled | boolean | \- |
| name | string | "ds-checkbox" |
| validation | string | \- |
| forcePx | boolean | \- |
| classNames | Ex. "my-special-class"<br />string | \- |
| attributes | Ex. { target: "\_blank", "data-test": "lorem ipsum" }<br />Record<string, unknown> | \- |

```jsx
<Checkbox name="ds-checkbox" />
```