@npmcorp/pui-react-radio
v8.2.4
Published
A React component that provides styled radio buttons
Downloads
37
Readme
pui-react-radio
A React component that provides styled radio buttons
Pivotal UI React (GitHub, npm) is a collection of React components for rapidly building and prototyping UIs.
This component requires React v0.13
See the Pivotal UI Styleguide for fully rendered examples.
Components
Radio
A radio button
var Radio = require('
#### Properties
- `checked`
- `Boolean`: Whether the radio is currently selected
- `defaultChecked`
- `Boolean`: Whether the radio begins selected
- `name`
- `String`: An identifier for the radio for form submissions and associating it with a `<RadioGroup>`
- `value`
- `String`: The value used for `name` on form submission
- `onChange`
- `Function`: A callback called when the radio is checked or unchecked
- `id`
- `String`: An identifier for the radio that can be used, for example, with labels
*****************************************
(c) Copyright 2015 Pivotal Software, Inc. All Rights Reserved.