field-check
Choices and actions The controls that pick from options, and the rows that end a form. Each one sits in a padded rst-box, because that is the card a form goes in.
The one toggle mechanism: a real checkbox skinned as a switch, keyboard and screen-reader intact.
Each example is live, but its links go nowhere. HTML shows the markup to copy.
On
Put this inside <section rst-box><form rst-form>.
<label rst-switch >
<input type ="checkbox" name ="notify_on" checked >
<span rst-switch-track aria-hidden ="true" ></span >
Email me about replies
</label >
Off
Put this inside <section rst-box><form rst-form>.
<label rst-switch >
<input type ="checkbox" name ="notify_off" >
<span rst-switch-track aria-hidden ="true" ></span >
Email me about mentions
</label >
Disabled
Put this inside <section rst-box><form rst-form>.
<label rst-switch >
<input type ="checkbox" name ="notify_disabled" disabled >
<span rst-switch-track aria-hidden ="true" ></span >
Email me a weekly digest
</label >