## Slider Drag the slider within a fixed range. ### Basic usage The current value is displayed when the slider is being dragged. :::demo Customize the initial value of the slider by setting the binding value. ```html ``` ::: ### Discrete values The options can be discrete. :::demo Set step size with the `step` attribute. You can display breakpoints by setting the `show-stops` attribute. ```html ``` ::: ### Slider with input box Set value via a input box. :::demo Set the `show-input` attribute to display an input box on the right. ```html ``` ::: ## Attributes | Attribute | Description | Type | Accepted Values | Default | |---------- |-------------- |---------- |-------------------------------- |-------- | | min | minimum value | number | — | 0 | | max | maximum value | number | — | 100 | | disabled | whether Slider is disabled | boolean | — | false | | step | step size | number | — | 1 | | show-input | whether to display an input box | boolean | — | false | | show-stops | whether to display breakpoints | boolean | — | false | ## Events | Event Name | Description | Parameters | |---------- |-------- |---------- | | change | triggers when the value changes | value after changing |