Number Stepper
Change a bounded quantity with the keyboard or step buttons.
Seats
1 to 12 seats per workspace
HTML
<div class="rlw-labeled"><strong>Seats</strong>
<span class="rlw-step-number" data-rlw-number>
<button type="button" aria-label="Remove one seat" data-step="-1"><svg class="rlw-icon" aria-hidden="true" focusable="false" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/></svg></button>
<input type="number" name="seats" aria-label="Seats" min="1" max="12" step="1" value="3" inputmode="numeric">
<button type="button" aria-label="Add one seat" data-step="1"><svg class="rlw-icon" aria-hidden="true" focusable="false" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14m-7-7v14"/></svg></button>
</span>
<small>1 to 12 seats per workspace</small>
</div>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-workspace.css">
<script defer src="/mero.js"></script>
<script defer src="/mero-workspace.js"></script>