Skip to content

Toggle Button

Represent a persistent on or off state with a pressed button.

View template

Keep the visible label stable so assistive technology can announce the pressed state.

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>
Download library and examples ↓