To make certain forms more user-friendly, I’d like to be able to use the well-known ‘switch’ as a control.
It would behave exactly the same as a checkbox, just have different visuals (and be placed on the right instead of the left of the label).
You can find examples in your Android or IOS system settings, where the switches show on certain settings on the right side. Bootstrap example: https://getbootstrap.com/docs/5.1/forms/checks-radios/#switches


The ‘on’ color could be set to the accent color set in the theme.