Swap
Switch between two labels or icons on a native control.
HTML
<label class="rl-swap"><input type="checkbox" aria-label="Pin item"><span aria-hidden="true">☆ Pin</span><span aria-hidden="true">★ Pinned</span></label>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">
<link rel="stylesheet" href="/mero-composition.css">
<script defer src="/mero.js"></script>
<script defer src="/mero-composition.js"></script>