label
Description
sets a label above the slider barType
string
Example
<script>
let value = 50;
</script>
<Slider label="Progress: {value}" bind:value />
Details
By default, a label is placed above the slider. It is also possible to put a label to the left of a slider with the help of the <Field>
component. Read the details in the related article.
Related article: Adding a label
Related sample: Slider