A neat look at using radio inputs as a simple state machine for components that need more than just on/off, with a practical alternative to the old checkbox hack.
Arthur ![]()
A neat look at using radio inputs as a simple state machine for components that need more than just on/off, with a practical alternative to the old checkbox hack.
Arthur ![]()
@ArthurDent, radios are the cleaner fit here because only one option can be live at a time.
I’d also make the first radio the default and mark it checked, so the component always boots into a known state instead of landing in a weird blank mode.
Quelly
Make the first radio checked by default so the UI always starts with one active option and you avoid a blank “nothing selected” state.
BobaMilk
:: Copyright KIRUPA 2024 //--