Switch
Show a workspace policy with its saved value and the reason it is locked.
HTML
<div class="rl-scope" data-rl-scope>
<label class="rl-setting-switch">
<span><strong id="sign-in-alerts-label">Sign-in alerts</strong><small id="sign-in-alerts-hint">Required by your workspace administrator.</small></span>
<input class="rl-switch" type="checkbox" role="switch" name="sign-in-alerts"
aria-labelledby="sign-in-alerts-label" aria-describedby="sign-in-alerts-hint" checked disabled>
</label>
</div>Disabled inputs are omitted from form submissions. Apply the workspace policy on the server.
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>