Components / Slider

Forms

Slider

new

Choose a value or range along a track, with steps and output.

since v3.62.9 kB gzip

Preview

64%

Installation

npx @strata/cli add slider

Usage

import { Slider } from "@/components/strata";

<Slider label="Opacity" defaultValue={64} formatOptions={{ style: "unit", unit: "percent" }} />

Props

PropTypeDefault
minValue

Lower bound.

number0
maxValue

Upper bound.

number100
step

Increment.

number1
formatOptions

Formats the visible output.

Intl.NumberFormatOptions—

Accessibility

Was this page helpful?

Documented since v3.6 · components/slider.mdx