Skip to content
caliper ui docs

Pro

Page dots

Where you are in a set of slides: the current dot stretches into a pill that fills while slides advance on their own.

Pro
pnpm dlx shadcn@latest add @caliper/page-dots

What’s new in Halden

The October 2026 release in four highlights

Match payments in any currency
Installs components/ui/page-dots.tsxDepends on none beyond ReactMotion shared motion tokens

When to use

Use it for

  • Carousels, onboarding steps and image sets.
  • Any pager with a handful of pages.

Skip it when

  • Long sets; show a count and arrows.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/page-dots

Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

Usage

Import it from your copy of the source. The example behind the preview comes with the source.

example.tsx
import { PageDots } from "@/components/ui/page-dots"

The worked example comes with Pro

The 43-line example behind the preview opens here, ready to copy.

  • 626 Pro parts, blocks and page templates, all with source
  • $149 once, with lifetime updates. No renewal
  • A full refund within 14 days if it is not for you
Checking your licence…

API reference

PageDots

component
PropTypeDefaultDescription
count *number—
index *number—
onIndexChange *(index: number) => void—
labelstring"Slides"Names the group, e.g. "Testimonials".
progressnumber—0 to 1: how far the current slide's timer has run, for slides that advance by themselves.
classNamestring—

Accessibility

It exposes group semantics, with aria-label, aria-current and aria-hidden kept in step with state.

KeyBehaviour
→Moves to the next item or value.
←Moves to the previous item or value.
HomeJumps to the first item or the minimum.
EndJumps to the last item or the maximum.

Motion

Transitions use the shared duration and easing tokens. Under prefers-reduced-motion those tokens collapse to instant and travel distances go to zero, so state changes still happen without movement.

All Compare & browse examples