Forms
Slider
newChoose a value or range along a track, with steps and output.
since v3.62.9 kB gzip
Preview
Installation
npx @strata/cli add sliderUsage
import { Slider } from "@/components/strata";
<Slider label="Opacity" defaultValue={64} formatOptions={{ style: "unit", unit: "percent" }} />Props
| Prop | Type | Default |
|---|---|---|
minValueLower bound. | number | 0 |
maxValueUpper bound. | number | 100 |
stepIncrement. | number | 1 |
formatOptionsFormats the visible output. | Intl.NumberFormatOptions | — |
Accessibility
Related
Text field
Single-line input with label, description, validation and adornments.
Select
Pick one option from a list, with typeahead and sections.
Checkbox
Binary choice with indeterminate state and grouped variants.
Switch
Instant on/off setting, typically in settings lists.
Was this page helpful?
Documented since v3.6 · components/slider.mdx