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 Globe

A globe for your about page: land and a stippled sea lit from one side, city lights on the night side, turning west to east the way the Earth does. Home gets a radar ping and each place an arc with a pulse running along it; spin it by hand, or click a place to bring it round.

Needs: None. A 2D canvas and a 1-degree land map from Natural Earth (public domain, about 11 KB) built in.

Land from Natural Earth

Customize

Props

PropTypeDefaultDescription
home{ lat: number; lon: number; label?: string }requiredWhere you're based: a ping marks it, and the globe starts turned to it.
places{ lat: number; lon: number; label?: string }[]"[]"Places you've worked, studied or shipped to: an arc runs to each from home.
tonestring"#ff7a3d"The ping, the arcs and the pulses along them.
landstring"#7da35c"The land's colour in daylight.
oceanstring"#3a78b8"The sea's colour in daylight, drawn as a lighter stipple than the land.
cellnumber3Size of one dither pixel in px.
speednumber5Degrees a second the Earth turns, west to east. 0 holds it still.
lightsbooleantrueCity lights on the night side.
labelsbooleantrueNames beside home and the places.
interactivebooleantrueDrag to spin it like a desk globe; click a place to bring it round.
classNamestring–Class on the root, which fills its parent.
styleCSSProperties–Style on the root. Theme it through the --mlui-* variables.
← Dither CompareDither Portrait →