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

Dither Trail

Put it round an empty state or a landing section and the pointer writes on it in dithered ink: the stroke is wide when the hand moves slowly and thin when it's quick, as a pen's is; a click throws a splat of droplets; and the ink dries away dot by dot, the stipple thinning until the page is clean again. Several inks take turns stroke by stroke. It sits behind the content and reads the pointer from the window, so whatever's inside keeps its own clicks. Off with reduced motion.

Needs: None. Canvas 2D.

Customize

inks

Props

PropTypeDefaultDescription
childrenReactNode–What the trail sits behind.
tonestring | string[]–The ink, or several to take turns stroke by stroke. The text colour by default.
sizenumber26The pen's width in px when it moves slowly.
fadenumber1.4Seconds the ink takes to dry to a tenth.
splatbooleantrueA click throws a splat of ink.
overbooleanfalseDraw over the content instead of behind it.
cellnumber3Size of one dither cell in px.
classNamestring–Class on the area: give it its size.
styleCSSProperties–Style on the area.
← Dither SkeletonDither Upload →