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 Pagination

Page on and the lit stretch of dots reaches for the new page, its back end following a beat later; hovering lights a faint preview. The first and last pages stay put, the ones round the current page slide, and the number of items never changes, so nothing jumps under the pointer. Pages can be real links, so they're crawlable and open in a new tab.

Needs: None. Plain markup and a row of dots.

Customize

Props

PropTypeDefaultDescription
countnumberrequiredNumber of pages.
pagenumber–Controlled page, from 1. Leave unset to let it keep its own.
defaultPagenumber1Page at first, when uncontrolled.
onChange(page: number) => void–Called with the new page.
href(page: number) => string–Make each page a real link.
siblingsnumber1Pages shown either side of the current one.
boundariesnumber1Pages always shown at each end.
tonestring–The lit dots' colour. The text colour by default.
pitchnumber5Distance between strip dots, px.
labelstring"Pagination"What the navigation is called, for screen readers.
classNamestring–Class on the nav.
styleCSSProperties–Style on the nav.
← Dot MenuDot Password →