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 Price Range

Each bar of dots stands for a slice of the price range, as tall as the number of things at that price, so you can see where the prices bunch before you choose. Bars inside the range light as the thumbs pass and the count under it updates. Drag a thumb, press the track to bring the nearer one there, use the arrow keys, or type a price; the top end can mean "and up".

Needs: None. One canvas.

Customize

Props

PropTypeDefaultDescription
minnumberrequiredThe lowest price.
maxnumberrequiredThe highest price.
stepnumber1What prices snap to.
value[number, number]–Controlled range. Leave unset to let it keep its own.
defaultValue[number, number]"[min, max]"Range at first, when uncontrolled.
onChange(range) => void–Called as it moves.
onCommit(range) => void–Called once a move is done. Fetch results here.
pricesnumber[]–Prices of what's filtered: the histogram, and the count.
nounstring"results"What the results are called in the count.
currencystring"$"Before every price.
openEndedbooleantrueThe top end means and up: $500+.
gapnumber0The smallest the range can close to.
tonestring–The lit bars' and track's colour. The page's accent by default.
pitchnumber4Size of one dot, px.
classNamestring–Class on the filter.
styleCSSProperties–Style on the filter.
← Dot PasswordDot Pricing →