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

Taste Ledger

A shared account's recent listening as beads on a thread, each hanging by how much it moves your taste. Snip one and recommendations forget it.

Needs: A text embedding per track (title, artist, tags) from any model; raw sentence embeddings are fine. The demo runs bge-small (about 34 MB, downloaded once in the browser).

Customize

Props

PropTypeDefaultDescription
tracks{ id: string; title: string; artist: string; noun?: [one: string, many: string]; embedding?: ArrayLike<number> }[]requiredEvery track the sessions play. noun is what to call it in "Your mix lost 4 lullabies", singular and plural ("track" by default). Without embeddings the pulls can't be worked out.
sessions{ id: string; label: string; hour: number; daysAgo: number; minutes: number; plays: { track: string; count: number }[] }[]requiredRecent listening, oldest first. hour is when it started in 24-hour time (2.25 is 2:15 am); plays lists track ids and how often each played.
mixSizenumber8How many recommendations to show.
defaultExcludedstring[]–Session ids that start out not counting.
onChange(excluded: string[]) => void–Called with the session ids that no longer count, each time that changes.
accentstring"#c8502a"Colour of new picks and the rule offer, any CSS colour. Left unset, a lighter orange is used in dark mode.
classNamestring–Class on the root element.
styleCSSProperties–Style on the root element. Theme it through the --mlui-* variables.
← Sticker Lift