Slider

Single and dual-thumb range controls with marks, tooltips and keyboard support.

Volume: 40%

Import#

import { Slider, RangeSlider } from "astralis-ui";

Marks#

marks accepts true for auto-marks at every step, or an array with optional labels for the ones worth naming.

Range#

RangeSlider is the dual-thumb sibling — same props, tuple value.

Price: $200 – $600

Props#

PropTypeDefaultDescription
min / max / stepnumber0 / 100 / 1The scale.
value / defaultValue / onChangenumber (Slider) or [number, number] (RangeSlider)Controlled / uncontrolled API.
marksboolean | { value, label? }[]Tick marks, optionally labeled.
showTooltipbooleantrueValue tooltip on the thumb.
size"sm" | "md" | "lg""md"Track and thumb scale.
colorSchemeall 11 schemes"brand"Filled-track and thumb hue.
invalid / disabled / readOnlybooleanfalseState flags — inherited from Field.

Keyboard#

KeyAction
/ Increase by step
/ Decrease by step
Home / EndJump to min / max

Accessibility#

Thumbs render role="slider" with aria-valuemin/max/now; RangeSlider's two thumbs are each independently focusable and clamp against each other.