1
votes

I am using a radioButton from Material UI(0.18.1). The color props for the component is not working.

<RadioButton
   className="no-filter-btn"
   label="No Filter"
   color="primary"
   fullWidth
   onCheck={this.noFilter}
/>

This is the older Version of material UI.

2

2 Answers

0
votes

Following to https://v0.material-ui.com/v0.18.1/#/components/radio-button RadioButton Properties does not have color props. You should try to override css style.

0
votes

Color property is not a prop you can pass into the Component rather use style property like:

style={`color` : `${primary}`}