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 Signup

A pill of a field outlined in dots with the button set inside it. Its colour dissolves in once the address is well formed; it marches while your onSubmit runs, then shows a check. A likely slip in the domain (gmial.com, hotmial.com, acme.con) gets a one-tap fix, and an error shakes the field and says why. It's a real form underneath, so autofill, Enter and screen readers all work.

Needs: None. Canvas 2D.

Customize

Props

PropTypeDefaultDescription
onSubmit(email: string) => Promise<unknown> | voidrequiredSends the address. Throw or reject with a message to show it.
labelstring"Subscribe"The button's word.
doneLabelstring"Done"The button's word once it's done.
placeholderstring"you@example.com"The field's placeholder.
notestring–A line under the field before anything's sent.
successstring"You're in. Check your inbox to confirm."The line under the field once it's done.
timeoutnumber20000Give up waiting for onSubmit after this many ms and say so. 0 waits forever.
tonestring–The button's colour. The page's accent by default.
pitchnumber2Size of one dot in px.
namestring"email"The input's name, for forms that read it.
classNamestring–Class on the form.
styleCSSProperties–Style on the form.
← Dot SelectDot Slider →