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 / Backgrounds

Duck Pond

The water is your page, black or white with the theme; only the ducks and their ripples are printed. Each duck keeps its own moods: paddling about, upending to feed, preening, dozing with its head tucked. Ducklings trail their mother and a drake stays near his hen, and they all keep clear of your text. A quick hand scatters them, a still one draws a curious few, and a click throws bread they race for. Put it behind your page like any background and give the headline's selector to avoid.

Needs: None. A 2D canvas.

Customize

Props

PropTypeDefaultDescription
pairsnumber2How many mallard pairs, a drake and a hen each.
ducklingsnumber5Ducklings trailing a hen of their own. 0 for none.
cellnumber3Size of one dither cell in px. Bigger cells, bigger ducks.
inkstring–The ripples' ink. The theme foreground by default.
dampingnumber0.982How long ripples last: the share of each wave kept per step.
speednumber1Time scale. 0 holds the moment.
interactivebooleantrueA quick pointer scares them, a still one makes them curious, a click throws bread. Read on the window.
avoidstring–CSS selector for elements the ducks keep clear of, like a headline.
seednumber4Picks the ducks' places and moods.
opacitynumber1Opacity of the whole scene.
dprnumbernullDevice pixel ratio to render at. Math.min(devicePixelRatio, 2) when unset.
classNamestring–Class on the root element, which fills its parent.
styleCSSProperties–Style on the root element. Theme it through the --mlui-* variables.
← DandelionsFireflies →