A wrapper for material-ui
's checkbox and radio button with configurable extras like feedback.
npm install --save choice-input
import ChoiceInput from 'choice-input';
<ChoiceInput
choiceMode={this.props.choiceMode}
checked={this.isChecked(choice.value)}
correct={this.correct(choice)}
correctness={this.correctness(choice)}
disabled={disabled}
display-key={this.displayKey}
feedback={this._feedback(choice)}
label={choice.label}
onChange={this.onChange}
value={choice.value} />