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

Split-Flap

A rotating word for your headline, set on a split-flap board: each letter is a module that turns forward through its cards until its own comes up, so a new word settles in a staggered clatter. It sits inline and takes the size and font of the text around it; a click turns to the next word.

Needs: None. DOM and the Web Animations API. The clatter uses Web Audio and only plays after a click.

Customize

align

Props

PropTypeDefaultDescription
wordsstring[]requiredThe words the board turns through. One word just flips in once.
intervalnumber3.2Seconds each word stays up once it has settled.
speednumber15Cards a second each module turns through. A real board does about 15.
align"left" | "center""left"Where a short word sits on the board.
cardsstring" ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,:-'!?&/"The cards on each module, in the order they turn. Add lowercase letters to keep case.
tonestring""The letters' colour, e.g. amber for an airport board. The text colour when unset.
soundbooleanfalseThe clatter of the flaps. Plays only after a click.
interactivebooleantrueA click turns the board to the next word.
classNamestring–Class on the board. It takes its size from font-size.
styleCSSProperties–Style on the board. Theme it through the --mlui-* variables.
← Pollen TrailTheme Toggle →