Slider
Implemented InputInset single/range selection with vertical grips, value badges, endpoint labels and native keyboard/form behavior.
Kumo reference: kumo-ui.com/components/slider/
Presentation commands show demo feedback. Read the interaction guide to connect real actions.
Price range
Show template
{% load wdj %}
<div class="w-72 max-w-full">
{% include "wdj/components/slider.html" with name="price" label="Price range" range=True start_value=25 end_value=75 only %}
</div>
Basic
Show template
{% load wdj %}
<div class="w-72 max-w-full">
{% include "wdj/components/slider.html" with name="slider_basic" label="Volume" value=40 only %}
</div>
Steps
Show template
{% load wdj %}
<div class="w-72 max-w-full">
{% include "wdj/components/slider.html" with name="slider_steps" label="Match count" value=2 max=5 only %}
</div>
Disabled
Show template
{% load wdj %}
<div class="w-72 max-w-full">
{% include "wdj/components/slider.html" with name="slider_disabled" label="Locked" value=70 disabled=True only %}
</div>
Minimum value
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/slider.html" with name="slider_minimum_value" label="Minimum volume" value=0 only %}
</div>
Custom bounds
Show template
{% load wdj %}
<div class="grid w-full max-w-lg gap-4">
{% include "wdj/components/slider.html" with name="slider_custom_bounds" label="Temperature" min=-10 max=40 value=20 value_suffix=" C" only %}
</div>
Formatted percentage
Show template
{% load wdj %}
<div class="w-72 max-w-full">{% include "wdj/components/slider.html" with id="audit-percent-slider" label="Sampling rate" value=0.25 min=0 max=1 step=0.05 format="percent" only %}</div>
Slider sizes
Show template
{% load wdj %}
<div class="flex w-72 max-w-full flex-col gap-6">{% include "wdj/components/slider.html" with id="audit-small-slider" label="Small" value=30 size="sm" only %}{% include "wdj/components/slider.html" with id="audit-base-slider" label="Base" value=30 only %}</div>
Controlled brightness
Show template
{% load wdj %}
<div class="w-72 max-w-full" x-data="{ brightness: 50 }" @wdj:slider-change="brightness = $event.detail.value">{% include "wdj/components/slider.html" with id="audit-brightness" label="Brightness" value=50 only %}<p class="mt-2 text-base" x-text="'Brightness: ' + brightness + '%'"></p></div>
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| name | string | unset | Name; pass the documented value shown in the examples. |
| value | number | unset | Value; pass the documented value shown in the examples. |
| min | number | 0 (Slider/Meter) | Min; pass the documented value shown in the examples. |
| max | number | 100 (Slider/Meter) | Max; pass the documented value shown in the examples. |
| step | number | 1 (Slider) | Step; pass the documented value shown in the examples. |
| label | string | unset | Visible accessible label. Supply an explicit aria-label via attrs when the control is bare. |
| description | string | unset | Description; pass the documented value shown in the examples. |
| error | string | unset | Validation message; implies error styling and accessible error association. |
| disabled | bool | False | Disabled; pass the documented value shown in the examples. |
| required | bool | False | Required; pass the documented value shown in the examples. |
| id | string | unset | Stable unique DOM ID; important for HTMX targets and focus restoration. |
| attrs | dict | {} | Dictionary of escaped native, HTMX or Alpine attributes. Literal Tailwind classes only. |
| show_value | bool | True | Show value; pass the documented value shown in the examples. |
| value_suffix | string | unset | Value suffix; pass the documented value shown in the examples. |
| range | bool | False | Range; pass the documented value shown in the examples. |
| start_value | number | unset | Start value; pass the documented value shown in the examples. |
| end_value | number | unset | End value; pass the documented value shown in the examples. |
| size | string | base | Size; pass the documented value shown in the examples. |
| format | string | unset | Slider value display: percent or currency; numeric values remain unchanged for form submission. |
| locale | string | unset | Intl locale for month headings, full date labels and weekdays; default en. Action labels are supplied separately. |
| currency | string | unset | Currency; pass the documented value shown in the examples. |
| class | string | "" | Class; pass the documented value shown in the examples. |