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 Cookies

Accept and a bite comes out of the biscuit, crumbs flying; reject and it's simply put away; choose and each kind of cookie gets its own switch. Reject all sits right beside Accept all, the same weight. The choice is remembered so it stays away, and a Cookie settings link can open it again.

Needs: None. One small canvas and localStorage.

Props

PropTypeDefaultDescription
categories{ id; label; description?; required? }[]"necessary, analytics, marketing"The kinds of cookie. Required ones are always on.
titlestring"Cookies"Its heading.
childrenReactNode–What it says. A plain default if left out.
policyHrefstring–Where your cookie policy lives.
policyLabelstring"Cookie policy"The policy link's words.
onDecide(choices: Record<string, boolean>) => void–Called with what was agreed to.
storageKeystring | null"mlui-consent"Where the choice is remembered. null: ask every time.
openboolean–Show it whatever's remembered, for a Cookie settings link.
position"bottom-left" | "bottom-right" | "inline""bottom-left"Pinned to a corner of the window, or in the page.
classNamestring–Class on the banner.
styleCSSProperties–Style on the banner.
← Dot ContentsDot Countdown →