@s-ui/react-atom-radio-button
Version:
AtomRadioButton is a component that displays an input radio w/ its expected behavior
48 lines (32 loc) • 1.68 kB
Markdown
# AtomRadioButton
AtomRadioButton is a component that displays an input radio w/ its expected behavior
[](https://sui-components.vercel.app/workbench/atom/radioButton/)
[](https://github.com/SUI-Components/sui-components/issues/new?&projects=4&template=bug-report.yml&assignees=&template=report-a-bug.yml&title=🪲+&labels=bug,component,atom,radioButton)
[](https://www.npmjs.com/package/@s-ui/react-atom-radio-button)
[](https://github.com/SUI-Components/sui-components/issues?q=is%3Aopen+label%3Acomponent+label%3AradioButton)
[](https://github.com/SUI-Components/sui-components/blob/main/components/radioButton/label/LICENSE.md)
## Installation
```sh
$ npm install @s-ui/react-atom-radio-button --save
```
## Usage
```js
import AtomRadioButton from '@s-ui/react-atom-radio-button'
```
### Basic usage
```js
<AtomRadioButton />
```
### Checked
```js
<AtomRadioButton checked />
```
### Disabled
```js
<AtomRadioButton disabled />
```
### w/ onChange handler
```js
<AtomRadioButton onChange={console.log} />
```
> **Find full description and more examples in the [demo page](/workbench/atom/radioButton).**