Components Forms
Slider
The browser's range input, styled.
$ pyblade ui:add slider
A slider
Props
Written as attributes of <pb-ui.slider>; put a colon before one to pass it a Python value, as in :items="items". A slot is written <pb-slot:name>.
| Name | Type | Default | Description |
|---|---|---|---|
| min | int | 0 | |
| max | int | 100 | |
| step | int | 1 | |
| value | int | 50 | Where it starts |
| class | str | "" | Added to the classes of the component. Every other attribute is spread on it too. |