I am using Antd Radio Button in my project and my requirement is, when I change Radio button, I want to apply custom color for every Radio options. How can I achieve this. For example, I want Radio color for Hangzhou is Red, Blue for Shanghai and so on, after selecting radio.
Here is my code.
<Radio.Group onChange={onChange} defaultValue="a">
<Radio.Button value="a">Hangzhou</Radio.Button>
<Radio.Button value="b">Shanghai</Radio.Button>
<Radio.Button value="c">Beijing</Radio.Button>
<Radio.Button value="d">Chengdu</Radio.Button>
</Radio.Group>