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 Avatar

Each person is printed in a few inks of their own colour (picked from their name, so they keep it): their photo, or their initials on a pale print while it loads or when there isn't one, the photo developing in over them when it arrives. The round edge is a stipple, a status dot sits in a gap cut into it, and under the pointer the print dissolves into the photo's own colours. DitherAvatarGroup overlaps them, each cutting a clean gap into the one beneath, with the rest counted in a +N.

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

Demo photos by Jurica Koletić, Albert Dera, Jimmy Fermin and Hassan Khan on Unsplash

Customize

Props

PropTypeDefaultDescription
namestringrequiredThe person's name: initials when there's no photo, and what screen readers hear.
srcstring–A photo. Same-origin or CORS-enabled.
status"online" | "away" | "busy" | "offline"–A dot on the edge.
inkstring–The ink it's printed in. Picked from the name by default.
sizenumber40Width and height in px.
colourOnHoverbooleantrueUnder the pointer, the print dissolves into the photo's colours.
classNamestring–Class on the avatar.
styleCSSProperties–Style on the avatar.
Dither Banner →