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

Best Shot

Give it a burst of photos and it picks the sharpest, best-exposed frame, right in the tab. The clearly worse frames recede, ready to delete.

Needs: Nothing beyond the photos (same-origin or CORS-enabled). Scoring runs on a canvas in the tab, no model.

Customize

burst

Props

PropTypeDefaultDescription
frames{ id: string; src: string; alt?: string }[]requiredSeveral photos of the same moment, in the order they were taken. Same-origin or CORS-enabled, since their pixels are read.
onKeep(keep: string[], remove: string[]) => void–Called when the person keeps: the ids to keep and the ids they agreed to delete. Deleting is up to you.
detailnumber1024Long side, in px, of the grey copy sharpness is measured on. Bigger sees finer blur and costs more. (The sample frames are 288 px, so above that nothing changes here.)
floornumber0.15Smallest gap in log sharpness that counts as a real difference. Raise it and more pairs become too close to call, and fewer frames are offered for deletion.
classNamestring–Class on the root element.
styleCSSProperties–Style on the root element. Theme it through the --mlui-* variables, e.g. --mlui-radius.
← Arrival TimeCareer Line →