react-radios

1.1.0 • Public • Published

React Radios

Brings radio group behavior into line with other input types in React like the select tag.

<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:

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    1,070
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    1,070
  • 1.0.2
    1
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i react-radios

Weekly Downloads

1,073

Version

1.1.0

License

MIT

Unpacked Size

456 kB

Total Files

8

Last publish

Collaborators

  • jedwatson
  • jossmac