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

Dot Crossing

Before signing someone out, it shows a pedestrian signal in LEDs: a little green man walking beside the seconds left, calm at first and quickening until he runs, the way animated signals in Taiwan hurry people across. Stay signed in and he settles back to a walk and it goes; let the count reach zero and the red man stands. It gives people the warning and the way to extend that WCAG asks for.

Needs: None. One small canvas. Your app owns the session; pass when it ends.

Customize

Props

PropTypeDefaultDescription
expiresAtnumberrequiredWhen the session ends, ms since the epoch. Move it later and the warning goes.
warnFornumber60Seconds before the end it appears. Up to 99.
onStay() => voidrequiredExtend the session, then move expiresAt.
onSignOut() => void–Sign out now.
onTimeout() => void–The time ran out.
signInHrefstring–Where Sign in again goes.
position"bottom-right" | "bottom-left" | "inline""bottom-right"Pinned to a corner, or in the page.
classNamestring–Class on the card.
styleCSSProperties–Style on the card.
← Dot CountdownDot Dialog →