UNPKG

joywok-material-components

Version:

<h1 align="center"> Joywok Material Components </h1>

34 lines (30 loc) 681 B
import React from 'react'; import ReactDOM from 'react-dom'; import Radio from '@material-ui/core/Radio'; import { withStyles } from '@material-ui/core/styles'; const styles = theme => ({ root: { color: '#CCCCCC', '&$checked': { color: '#23AF8C', }, }, checked: {}, }); class JwRadio extends React.Component{ constructor(props) { super(props); this.state = {}; } render(){ const { classes } = this.props; return (<div className="jw-radio "> <Radio {...this.props} classes={{ root: classes.root, checked: classes.checked, }}/> </div> ) } } export default withStyles(styles)(JwRadio);