import radioButtonProps from '!!ts-docgen-loader!./props.tsx';

### Конфигурация темы на уровне проекта:

```ts
// src/lib/theme.ts
import { configureRootTheme } from '@yandex-lego/components/Theme'
import { theme } from '@yandex-lego/components/Theme/presets/default'

configureRootTheme({ theme })
```

### Использование с нужным набором модификаторов:

```ts
// src/App.ts
import React, { useState } from 'react'
import { compose } from '@bem-react/core'
import {
  RadioButton as RadioButtonDesktop,
  withSizeM,
  withViewDefault,
} from '@yandex-lego/components/RadioButton/desktop'

const RadioButton = compose(withSizeM, withViewDefault)(RadioButtonDesktop)

const App = () => {
  const [value, setValue] = useState('value1')

  return (
    <RadioButton
      size="m"
      view="default"
      value={value}
      options={[
        { value: 'value1', children: 'Радио 1' },
        { value: 'value2', children: <>Радио 2</> },
        { value: 'value3', children: <><span>Радио</span> 3</> },
      ]}
      onChange={(event) => setValue(event.target.value)}
    />
  )
}
```

### Использование с полным набором модификаторов:

```ts
// src/App.ts
import React from 'react'
import { RadioButton } from '@yandex-lego/components/RadioButton/desktop/bundle'

const App = () => {
  const [value, setValue] = useState('value1')

  return (
    <RadioButton
      size="m"
      view="default"
      value={value}
      options={[
        { value: 'value1', children: 'Радио 1' },
        { value: 'value2', children: <>Радио 2</> },
        { value: 'value3', children: <><span>Радио</span> 3</> },
      ]}
      onChange={(event) => setValue(event.target.value)}
    />
  )
}
```
### Props

<PropsTable props={radioButtonProps} />
