Skip to content

patchkit/patchkit-radios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 2, 2016
7e2af65 · Apr 2, 2016

History

5 Commits
Apr 2, 2016
Apr 2, 2016
Apr 2, 2016
Apr 2, 2016
Apr 2, 2016

Repository files navigation

Radios

Convenient way to create sets of radio buttons.

screenshot.png

import Radios from 'patchkit-radios'

const opts = [
  { label: 'First Item', value: 1 },
  { label: 'Second Item', value: 2 },
  { label: 'Third Item', value: 3, defaultChecked: true }
]
const onChange = opt => { console.log('selected', opt) }
<Radios className="radios-example" group="example" options={opts} onChange={onChange} />

The group attribute sets the name on the inputs.

About

Convenient way to create sets of radio buttons

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published