Forms
Range
Range inputs for numeric value selection.
Basic range
Use .bima-range on an <input type="range"> element inside a .bima-field wrapper.
<div class="bima-field"> <label class="bima-label" for="coverage">Coverage amount</label> <input type="range" id="coverage" class="bima-range" min="0" max="100" value="50"> </div>
Custom min, max, and step
Customize the range with min, max, and step attributes.
<input type="range" class="bima-range" min="25" max="500" step="25" value="100">
Range with live value display
Combine the range input with JavaScript to show the current value dynamically.
<div class="bima-field">
<label class="bima-label" for="coverage">
Coverage: $<span id="coverage-val">50,000</span>
</label>
<input type="range" id="coverage" class="bima-range"
min="10000" max="200000" step="10000" value="50000"
oninput="document.getElementById('coverage-val').textContent =
Number(this.value).toLocaleString()">
</div>Disabled range
Add the disabled attribute to prevent interaction.
<input type="range" class="bima-range" value="35" disabled>