Last active
July 19, 2016 15:13
-
-
Save norbajunior/a1db989baf38951b34e7dc28572e5b20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RadioOption extends React.Component { | |
static propTypes = { | |
label: React.PropTypes.string.isRequired, | |
inputHtml: React.PropTypes.object, | |
wrapperHtml: React.PropTypes.object, | |
labelHtml: React.PropTypes.object, | |
labelAttribute: React.PropTypes.string, | |
idAttribute: React.PropTypes.string, | |
disableOptions: React.PropTypes.array, | |
options: React.PropTypes.array | |
}; | |
static defaultProps = { | |
wrapperHtml: {}, | |
labelHtml: {}, | |
inputHtml: {}, | |
idAttribute: "value", | |
labelAttribute: "label", | |
disableOptions: [], | |
options: [] | |
}; | |
render () { | |
return ( | |
<InputWrapper {...this.props}> | |
<RadioOptions {...this.props}/> | |
</InputWrapper> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment