diff --git a/docs/src/pages/components/Slider.svx b/docs/src/pages/components/Slider.svx index 2fb77735..e26fab92 100644 --- a/docs/src/pages/components/Slider.svx +++ b/docs/src/pages/components/Slider.svx @@ -7,8 +7,12 @@ components: ["Slider", "SliderSkeleton"] import Preview from "../../components/Preview.svelte"; +`Slider` provides a visual way to select a value from a range. It supports keyboard navigation, custom ranges, step values, and various states. + ## Default +Create a basic slider with a label and default range (0-100). + ## Full width @@ -19,36 +23,54 @@ Set `fullWidth` to `true` for the slider to span the full width of its containin ## Hidden label +Visually hide the label while maintaining accessibility. + ## Hidden text input +Hide the text input while keeping the slider functionality. + ## Custom minimum, maximum values +Set custom range values and labels. + ## Custom step value +Specify the step value for more precise control. + ## Light variant - +Use the light variant for light backgrounds. + + ## Invalid state - +Indicate an invalid state with the `invalid` prop. + + ## Disabled state - +Disable the slider to prevent interaction. + + ## Skeleton +Show a loading state with the skeleton variant. + ## Skeleton (hidden label) +Show a loading state without a label. + \ No newline at end of file