2

I want to use images as radio buttons but couldn't find any source. Any help will be appreciated.

sample of radio button with images

touchngo
  • 35
  • 5

2 Answers2

1

You need to first hide your [type=radio] and then wrap your image and input tag inside the label.

Following link could be helpful.

https://stackoverflow.com/a/17541916/8170092

Neel Dsouza
  • 1,138
  • 2
  • 11
  • 26
0

Since the OP mentioned he is using Material-UI (you should add that tag next time BTW), take a look at the Radio documentation

There are icon and checkedIcon props, to which you can pass the corresponding images to.

Matthew Kwong
  • 1,667
  • 6
  • 15