Switch
Toggle one setting with a checkbox-backed switch.
HTML
<div class="rl-scope" data-rl-scope>
<label class="rl-setting-switch">
<span><strong id="stock-alerts-label">Stock alerts</strong><small id="stock-alerts-hint">Notify me when an item falls below five units.</small></span>
<input class="rl-switch" type="checkbox" role="switch" name="stock-alerts"
aria-labelledby="stock-alerts-label" aria-describedby="stock-alerts-hint" checked>
</label>
</div>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>