ui-libraries/material/docs/src/content/docs/components/slider.mdx
import CodeSnippetMD from '@slint/common-files/src/components/CodeSnippetMD.astro'; import SlintProperty from '@slint/common-files/src/components/SlintProperty.astro';
<CodeSnippetMD imagePath="/src/assets/generated/slider.png" scale="3" imageWidth="300" imageHeight="200" imageAlt=""> ```slint import { Slider } from "@material"; export component Example inherits Window { width: 200px; height: 100px; background: transparent; Slider { x: 5px; value: 50; width: parent.width; } } ``` </CodeSnippetMD>Use a Slider to allow the user to select a value from a range by moving a thumb along a track. This is useful for adjusting settings such as volume, brightness, or any other scalar value within a specified range.
Invoked when the slider is released.
Invoked when the slider value changes.
Clears the focus from the component.
Focuses the component.