RadioButton
===========

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

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

```jsx
<RadioButton
  buttons={[
    {
      id: 'my_radio_name',
      selected: false,
      value: 'my_radio_value'
    }
  ]}
  name="my_radio_name"
/>
```