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 Banner

Without a photo it prints a slow-flowing field, the inks blending through blue noise where they meet and drifting so gently you notice only on looking back; with one, it prints the photo in those inks. Either way the middle stays calm, the ink thinning toward the page where the headline sits, and the print develops in when it first comes into view. Everything you put inside it stays real, readable page content.

Needs: None. Canvas 2D. Photos must be same-origin or CORS-enabled.

Customize

inks

Props

PropTypeDefaultDescription
childrenReactNode–The headline, the call to action: whatever sits on the banner.
srcstring–A photo to print. Without one, a slow-flowing field of the inks.
coloursstring[]"[\"#3255a4\", \"#c4365f\", \"#e0703a\"]"Two to four inks, darkest tones' first.
quietnumber0.85How calm the middle is kept, 0 to 1.
driftbooleantrueThe field drifts slowly.
cellnumber3Size of one dither cell in px.
altstring–For screen readers, when the picture matters. Left out, it's decoration.
classNamestring–Class on the banner: give it its padding and height.
styleCSSProperties–Style on the banner.
← Dither AvatarDither Compare →