HomeLabHire Me
ml-ui111 components

Get started

IntroductionInstallation

UI

Dots

Dot AccordionDot CalendarDot CheckboxDot CodeDot CommandDot ContentsDot CountdownDot CrossingDot FuseDot GaugeDot InstallDot KnobDot LogosDot MenuDot PaginationDot PasswordDot Price RangeDot PricingDot ProgressDot QueueDot RatingDot Reading ProgressDot SelectDot SignupDot SliderDot StatusDot StepperDot SwitchDot TabsDot ToastDot TooltipFlip-Dot CounterLED Marquee

Dither

Dither AvatarDither BannerDither CompareDither GlobeDither PortraitDither SkeletonDither TrailDither UploadDot CookiesDot DialogDot KeysDot ReceiptDot VariantsLenticular Card

More

Pollen TrailSplit-FlapTheme Toggle

Text

Dither RotatorDot TypeEnigma TextInk Print

Data viz

Dots

Contribution FieldDot BarsDot ChartDot Waffle

Dither

Dither DensityDither MapDither Stack

Media

Dots

Dot EqualizerDot WaveformVoice Note

Dither

Dither Scrubber

AI

Agent StepsAnswer VersionsCitation ChipConfidence GlassContext MeterDiffusion ImageDiffusion TextDither MaskDoc ReaderDot DictationGenerate ButtonGhost TextModel PickerPrompt BarResponse ActionsRevising TextSpoken ReplyThinking OrbThinking TraceToken MeterToken StreamWord Alternatives

Useful

Arrival TimeBest ShotCareer LineForgiving SearchGesture PadHeard AsHonest PinImage PaletteLikeness GridNear Miss SearchRain DropsSoft CorrectSpending SortSticker LiftTaste Ledger

Backgrounds

ButterfliesDandelionsDuck PondFirefliesKoi PondLight WellMarigoldsTrain WindowWhite Blossom

ml-ui / UI

Dot Slider

The filled part of the track is a lit bar in the accent, the rest a faint line of dots; the thumb is a key that presses a dot shorter as you hold it, and the value reads in a small dot face beside the track. A real range input lies over the drawing, so dragging, clicking, the keyboard and screen readers all work natively. The thumb follows the hand exactly and springs to a clicked or keyed value.

Needs: None. Canvas 2D over a native range input.

Customize

Props

PropTypeDefaultDescription
valuenumber–The value. Leave unset to let the slider keep its own.
defaultValuenumber–The value at first, when value isn't set.
onChange(value: number) => void–Called as the value changes, while dragging too.
onCommit(value: number) => void–Called once a change is done: the pointer let go, or a key let up.
minnumber0The lowest value.
maxnumber100The highest value.
stepnumber1The step between values.
format(value: number) => string–How the value reads, beside the track and to screen readers.
readoutbooleantrueShow the value beside the track.
ticksbooleantrueA dot under the track for each step, when there's room.
tonestring–The filled track's colour. The page's accent by default.
pitchnumber3Size of one dot in px. The slider is 11 dots tall.
disabledbooleanfalseCan't be moved.
labelstring"Value"Read out by screen readers.
classNamestring–Class on the slider. It fills its container's width.
styleCSSProperties–Style on the slider.
← Dot SignupDot Status →