tailwindcss-custom-forms icon indicating copy to clipboard operation
tailwindcss-custom-forms copied to clipboard

Ability to render `icon` on unchecked radios and checkboxes

Open hacknug opened this issue 4 years ago • 0 comments

I'm working on two different sites (designed by different folks) and for both I had to implement this kind of radio input:

radio_emptyradio_filled

Due to icon only being applied to :checked elements, I couldn't rely on it to style the input. Given it automatically escapes the SVG code and let's us take advantage of iconColor, it would be great if we could use it to add a bg-image to all radios regardless of their state.

hacknug avatar Aug 13 '20 12:08 hacknug