# react-radios

> Proper handling of HTML radios in react

Latest version **1.1.0** (published 2018-04-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-radios
pnpm add react-radios
yarn add react-radios
bun add react-radios
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2018-04-24 |
| First published | 2018-04-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 445.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jossmac |
| Keywords | radio, radio-group, radios |

## Links

- npm: https://www.npmjs.com/package/react-radios
- Homepage: https://github.com/jossmac/react-radios
- Issues: https://github.com/jossmac/react-radios/issues
- npm.io page: https://npm.io/package/react-radios

## Dependencies (1)

- [unstated](https://npm.io/package/unstated.md) ^2.0.2

## Recent versions

- 1.1.0 (latest) — 2018-04-24
- 1.0.2 — 2018-04-24
- 1.0.1 — 2018-04-23
- 1.0.0 — 2018-04-20

## README

# React Radios

Brings radio group behavior into line with other input types in React like the [select tag](https://reactjs.org/docs/forms.html#the-select-tag).

```js
<RadioGroup value={this.state.fruit} onChange={this.handleChange}>
  <Radio value="apple" /> Apple
  <Radio value="orange" /> Orange
  <Radio value="banana" /> Banana
</RadioGroup>
```

If you'd like to use the same single-value pattern for checkboxes,
there's components for that too:

```js
<CheckboxGroup value={this.state.numbers} onChange={this.handleChange}>
  <Checkbox value={1} /> One
  <Checkbox value={2} /> Two
  <Checkbox value={3} /> Three
</CheckboxGroup>
```

---
_Source: https://npm.io/package/react-radios · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
