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 / Useful

Gesture Pad

Draw a shape to run a command. When it's sure, your stroke morphs into the shape it understood; when it isn't, it offers its two best guesses.

Needs: None. Recognition runs in the page.

Customize

Props

PropTypeDefaultDescription
commands{ gesture: string; label: string }[]requiredWhich gesture runs what. Only these show as chips.
templates{ name: string; points: [number, number][] }[]–Shapes it knows. Defaults to circle, check, x, triangle, caret and zigzag; several templates can share a name.
onGesture(command: GestureCommand, score: number) => void–Called when a command runs, with the recogniser's score.
accentstring"#2f6fed"Colour of a recognised stroke and of what it learned. The default lightens in dark mode.
heightnumber300Height of the drawing area, px.
classNamestring–Class on the wrapper.
styleCSSProperties–Style on the wrapper, e.g. --mlui-radius.
← Forgiving SearchHeard As →