Components
Slider
hlm-slider takes value as an array of numbers, one per thumb, plus min, max and step. It emits valueChange. On the web, focus a thumb and use the arrow keys.
Value: 40
<div class="flex max-w-sm flex-col gap-3">
<hlm-slider [value]="[40]" [min]="0" [max]="100" [step]="5" aria-label="Volume" (valueChange)="level.textContent = '' + $event[0]" />
<p class="text-sm">Value: <span #level data-testid="slider-value">40</span></p>
</div>Range
Two values make two thumbs.
<div class="max-w-sm">
<hlm-slider [value]="[20, 70]" aria-label="Price range" />
</div>The inputs also include orientation, disabled, inverted and showTicks.