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 Accordion

Each question sits on a rule of dots. Opening one folds the upright of its dotted plus into the middle, lights the rule under it, and lets the answer in through a dither dissolve. Links like #refunds open their answer, find-in-page opens the one holding the match, and the questions are real headings with full keyboard support.

Needs: None. DOM, CSS masks and one small animation loop.

Customize

Props

PropTypeDefaultDescription
items{ question: string; answer: ReactNode; id?: string }[]requiredThe questions and their answers. The id, made from the question when left out, is what #links open.
multiplebooleanfalseLet several stay open at once. Off: opening one shuts the others.
defaultOpennumber | number[]–Open at first.
onChange(open: number[]) => void–Called with the open items' indexes when they change.
heading2 | 3 | 4 | 5 | 63The heading level of the questions, so they fit the page's outline.
tonestring""The open item's colour: its minus and lit rule. The accent when unset.
classNamestring–Class on the root.
styleCSSProperties–Style on the root. Theme it through the --mlui-* variables.
← Dither UploadDot Calendar →