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

Response Actions

The row under an AI answer: copy, regenerate, thumbs up and down. Each one answers with a small spring, and a thumbs-down asks why in a single tap.

Needs: None.

Customize

size

Props

PropTypeDefaultDescription
copyTextstring–Put on the clipboard by the copy button. Leave out to copy it yourself in onCopy.
onCopy(text: string) => void–Called when copy is pressed.
onRegenerate() => void–Called when regenerate is pressed.
onFeedback(kind: "up" | "down" | null, reasons: string[], text: string) => void–Called when a thumb is pressed or cleared (null), with no reasons, and again with the picked reasons and note when they're sent.
reasonsstring[]–Offered after a thumbs-down. Defaults to ["Wrong", "Too long", "Not what I asked"].
freeTextbooleantrueAdds an optional note field after the reasons.
size"sm" | "md" | "lg""md"Button size: 28, 32 or 38 px.
accentstring""Colour of a chosen thumb, picked reasons and the send button.
classNamestring–Added to the root.
styleCSSProperties–Inline styles for the root.
← Prompt BarRevising Text →