</> ConvertAtlas Developer Tools
Bootstrap 5 · Beginner

Stepped Range Slider

A stepped range slider with labeled stops and a live badge.

Requires Bootstrap 5. Add the CDN tags below to your page (styles in <head>, scripts before </body>). The downloaded file already includes them.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<div class="card border-0 shadow-sm" style="max-width:340px"><div class="card-body">
  <label class="form-label small fw-semibold d-flex justify-content-between">Team size <span class="badge text-bg-primary" id="ssOut">Small</span></label>
  <input type="range" class="form-range" id="ssInput" min="0" max="3" step="1" value="0">
  <div class="d-flex justify-content-between text-secondary" style="font-size:.7rem"><span>Solo</span><span>Small</span><span>Medium</span><span>Large</span></div>
</div></div>
var labels=['Solo','Small','Medium','Large'],r=document.getElementById('ssInput'),o=document.getElementById('ssOut');
r.addEventListener('input',function(){o.textContent=labels[+r.value]});r.value=1;o.textContent='Small';
Free to use.This component uses Bootstrap 5 (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.