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

Flip-Dot Counter

Stats for your site on a flip-dot board, the kind on old buses: each pixel a disc that turns over, the change rippling across a column at a time as the number counts up into view. The cursor is a magnet that flips the dots under it; a click counts again.

Needs: None. A small canvas. The clatter uses Web Audio and only plays after a click.

Customize

Props

PropTypeDefaultDescription
valuenumberrequiredThe number to land on.
fromnumber0Where the count starts when it first comes into view.
decimalsnumber0Digits after the point.
prefixstring""Set before the number, e.g. "$".
suffixstring""Set after it, e.g. "+", "k" or "%".
groupbooleantrueThousands commas.
durationnumber1.8Seconds the count takes.
tonestring"#f2c230"The colour of a dot's bright side. The text colour when unset.
pitchnumber7Size of one dot in px, disc plus gap.
soundbooleanfalseA soft clatter as the dots turn. Plays only after a click.
interactivebooleantrueThe cursor flips the dots under it like a magnet; a click counts again.
classNamestring–Class on the board.
styleCSSProperties–Style on the board. Theme it through the --mlui-* variables.
← Dot VariantsLED Marquee →