Examples
Documentation
Slider props
Parameters accepted by
{#include components/forms/slider ... /}. Model mode: pass
slider=<Slider> built in Java instead — the Java tab on each example shows the
builder.
| Name | Type | Description |
|---|---|---|
* id
|
String | DOM id. |
value
|
Number | Initial value. Default 50. |
min / max
|
Number | Range bounds. Default 0 / 100. |
disabled
|
boolean |
Adds pf-m-disabled and ignores click/drag.
|
Usage
Continuous values only. Slider is for ranges where the user picks somewhere along a continuum (volume, opacity, brightness). For a small fixed list of choices use Radio or Toggle group.
Keyboard a11y. The thumb has role="slider" and is focusable; PF's CSS
handles the visual focus ring. Wire keyboard arrow handlers in your own Alpine block if you need ←/→ adjustment.