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 / AI

Doc Reader

A strip of the document's pages printed in stipple (a heading, paragraphs of lines, the odd figure; stand-ins, not the real pages). On the page being read a line of dots sweeps down, the lines above it inking in as it passes, while the pages not reached yet stay faint; the strip slides along as the reading gets past the pages in view. It ends on what was read: "Read 12 pages · 4,300 words". Drive it with real progress from your parser or model, or let it read itself while you wait.

Needs: None. Canvas 2D.

Customize

Props

PropTypeDefaultDescription
namestringrequiredThe file's name.
pagesnumberrequiredHow many pages it has.
wordsnumber–How many words, for the line it ends on.
progressnumber–How far the reading has got, 0 to 1. Leave unset and it reads itself.
durationnumber–Seconds it takes when it reads itself. About half a second a page by default.
shownnumber6Pages shown at once.
onDone() => void–Called once the last page is read.
tonestring–The scan line. The page's accent by default.
pitchnumber2Size of one dither cell in px.
classNamestring–Class on the reader.
styleCSSProperties–Style on the reader.
← Dither MaskDot Dictation →