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 Stepper

The number is set in the 5 x 7 dot face, and when it changes only the digits that changed roll, up for more and down for less, lit in the accent as they go. Hold a button and it repeats, faster the longer it's held; click the number to type one. Real buttons and a real spinbutton lie under the drawing, so the arrow keys, Page Up and Down, Home and End and screen readers all work.

Needs: None. Canvas 2D over native buttons and a field.

Customize

Props

PropTypeDefaultDescription
valuenumber–The number. Leave unset to let the stepper keep its own.
defaultValuenumber–The number at first, when value isn't set.
onChange(value: number) => void–Called with the new number as it changes.
minnumber0The lowest number.
maxnumber99The highest number.
stepnumber1How much a press changes it.
tonestring–A pressed button and rolling digits. The page's accent by default.
pitchnumber3Size of one dot in px. The stepper is 13 dots tall.
disabledbooleanfalseCan't be changed.
labelstring"Number"What the number is, for screen readers.
classNamestring–Class on the stepper.
styleCSSProperties–Style on the stepper.
← Dot StatusDot Switch →