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
valuenumber—Controlled finite value within the configured range.
defaultValuenumber—Initial uncontrolled value; defaults to min.
onValueChange(value: number) => void—Receives each accepted pointer or keyboard value.
onValueChangeEnd(value: number) => void—Receives the accepted value at interaction end.
label *string—Required visible label.
minnumber0Finite inclusive lower bound.
maxnumber100Finite inclusive upper bound.
stepnumber1Positive finite increment.
formatOptionsIntl.NumberFormatOptions—Intl number options evaluated with the effective scoped locale.
namestring—Native range-input form name.
formstring—ID of a form outside the component ancestry.
descriptionstring—Supporting text associated with the thumb.
errorstring—Validation 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.