Managing multi-state UI with radio inputs

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 :grinning_face_with_smiling_eyes:

@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