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 Contents

Point it at an article and it lists the headings (giving them ids if they've none). Beside the list, a rail of dots: each heading a stop, and a marker that eases from one to the next in step with the section you're in, the read part lit. The section you're in is marked, a click scrolls there, and under it sits how many minutes of reading are left. It's a nav of real links, and it works with the window or any scrolling box.

Needs: None. Canvas 2D.

Customize

Props

PropTypeDefaultDescription
targetstring"article"CSS selector for the article whose headings it lists.
levelsnumber[]nullWhich heading levels to list. [2, 3] by default.
scrollerstring | HTMLElement–The element that scrolls, when it isn't the window.
offsetnumber96How far below the top of the view a heading counts as reached, in px.
titlestring"On this page"The small heading above the list. Empty for none.
timeLeftbooleantrueShow the minutes of reading left.
wpmnumber230Reading speed for the time left, words a minute.
tonestring–The rail's colour. The page's accent by default.
classNamestring–Class on the nav.
styleCSSProperties–Style on the nav.
← Dot CommandDot Cookies →