Switch
Toggle one setting with a checkbox-backed switch.
HTML
<label class="rl-row">
<input class="rl-switch" type="checkbox" role="switch" name="preview" value="on" checked>
Enable preview
</label>Native form submission includes this setting when selected.
Use in your app
Copy these tags into your page head once. Serve the files at the paths shown, then add the example’s template to your page.
Page assets
<link rel="stylesheet" href="/mero.css">
<script defer src="/mero.js"></script>