Skip to content

v3.0.0

Compare
Choose a tag to compare
@cheton cheton released this 28 Dec 08:40
· 21 commits to master since this release

Breaking

  • Renamed react-radio-button to react-radio

What's New

  • Adds RadioGroup component
<RadioGroup
    name="comic"
    value={this.state.value}
    onChange={(value, event) => {
        this.setState({ value: value });
    }}
>
    <div className="row">
        <div className="col-xs-12 col-sm-6">
            <RadioButton label="Batman (DC)" value="dc:batman" />
            <RadioButton label="Hulk (Marvel)" value="marvel:hulk" />
        </div>
        <div className="col-xs-12 col-sm-6">
            <RadioButton label="Superman (DC)" value="dc:superman" />
            <RadioButton label="Spider-Man (Marvel)" value="marvel:spiderman" disabled />
        </div>
    </div>
</RadioGroup>