Search 71 components and 72 controllers by name, category or description.
Slider
Native single-thumb range input with vertical support, validation and auto-submit
Field integration
The native range input inherits its name and accessible label from Field while Stimulus keeps the visual fill synchronized.
Choose a level from 0 to 100.
<hw:field name="volume" label="Volume" description="Choose a level from 0 to 100.">
<hw:slider :value="35" :min="0" :max="100" :step="1" />
</hw:field>
Custom range and precision
Min, max, and step remain native input attributes, including negative values and decimal increments.
Supports negative ranges and decimal steps.
<hw:field name="temperature" label="Temperature" description="Supports negative ranges and decimal steps.">
<hw:slider :value="21.5" :min="-10" :max="40" :step="0.5" />
</hw:field>
Vertical and RTL
Vertical sliders keep the minimum at the bottom, while horizontal sliders can follow an RTL direction.
The filled track follows text direction.
<div class="grid gap-8 sm:grid-cols-2">
<hw:field name="rtl_position" label="RTL position" description="The filled track follows text direction.">
<hw:slider :value="72" :min="0" :max="100" dir="rtl" />
</hw:field>
<div class="grid justify-items-center gap-2">
<span class="text-sm font-medium">Vertical volume</span>
<span class="text-xs text-muted-foreground">100</span>
<hw:slider
name="vertical_volume"
:value="65"
:min="0"
:max="100"
orientation="vertical"
aria-label="Vertical volume"
/>
<span class="text-xs text-muted-foreground">0</span>
</div>
</div>
Debounced server filtering
Slider input events are frequent, so auto-submit waits briefly before navigating. The output below is rendered from the resulting query string.
@php($brightness = max(0, min(100, (int) $brightness)))
<hw:form method="get" :action="route('components.slider')" auto-submit auto-submit-delay="350">
<div class="grid gap-4 sm:grid-cols-[1fr_auto] sm:items-center">
<hw:field name="brightness" label="Brightness" description="Changes submit after a short debounce.">
<hw:slider :value="$brightness" :min="0" :max="100" auto-submit />
</hw:field>
<output class="min-w-16 rounded-lg border bg-muted px-3 py-2 text-center font-mono text-sm">
{{ $brightness }}%
</output>
</div>
</hw:form>