sheengemologic ui
All components

Slider

A single-value accessible slider with scoped locale formatting and native range input semantics.@gemologic/sheen · forms

Playground

Alert threshold75%
<Slider label="Alert threshold" defaultValue={0.75} formatOptions={{ style: "percent", maximumFractionDigits: 0 }} min={0} max={1} step={0.05}  orientation="horizontal"/>

Variant matrix

Percent threshold
Alert threshold75%
orientation: horizontal
Alert threshold75%
orientation: vertical
Alert threshold75%

Anatomy

Package
@gemologic/sheen
Source
packages/ui/src/primitives/Slider.tsx
Tokens
  • --sheen-color-bg-inset
  • --sheen-color-border-control
  • --sheen-color-accent
  • --sheen-color-focus-ring

Accessibility

Role: sliderKeyboard: ArrowLeft, ArrowRight, ArrowUp, ArrowDown, PageUp, PageDown, Home, End

Do

  • Use a NumberField when exact entry matters more than spatial adjustment.

Do not

  • Do not use a slider for an unbounded or highly precise value.

Generated props

NameTypeDefaultDescription
valuenumberControlled finite value within the configured range.
defaultValuenumberInitial uncontrolled value; defaults to min.
onValueChange(value: number) => voidReceives each accepted pointer or keyboard value.
onValueChangeEnd(value: number) => voidReceives the accepted value at interaction end.
label *stringRequired visible label.
minnumber0Finite inclusive lower bound.
maxnumber100Finite inclusive upper bound.
stepnumber1Positive finite increment.
formatOptionsIntl.NumberFormatOptionsIntl number options evaluated with the effective scoped locale.
namestringNative range-input form name.
formstringID of a form outside the component ancestry.
descriptionstringSupporting text associated with the thumb.
errorstringValidation text that marks the slider invalid.
disabledbooleanfalseDisables pointer, keyboard, and form interaction.
readOnlybooleanfalsePrevents changes while retaining focus.
requiredbooleanfalseMarks the native range input required.
orientation"horizontal" | "vertical"horizontalHorizontal or vertical physical orientation.
invertedbooleanfalseReverses the physical direction without changing numeric order.
Native Solid/HTML attributes remain available and are omitted from this authored-prop view.