@npmcorp/pui-react-radio

8.2.4 • Public • Published

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.

Package Sidebar

Install

npm i @npmcorp/pui-react-radio

Weekly Downloads

5

Version

8.2.4

License

MIT

Last publish

Collaborators

  • shmam
  • dipeshpatel01
  • kartykp
  • jithinpg
  • reggi
  • karenjli
  • tayvongh
  • navin22
  • dhei
  • tiagonbotelho
  • hashtagchris
  • nishantms
  • feelepxyz.github
  • monishcm
  • jumoel
  • trevrosen
  • fritzy
  • npm
  • npmci
  • saquibkhan
  • gar
  • mylesborins