Skip to content
caliper ui pro docs

Booklet

A short ordered read, turned page by page: release highlights, a tour, a report. Turning a page moves it from the pile you have not read to the pile you have, so the piles show how far through you are while the counter tells you exactly.

Pro

What's new in 2.4

Six changes in this release. Turn the page for each one.

1

Per-part stylesheets

Every part ships its own file. Dialog installs about 12 KB of CSS.

2

Listed in shadcn

Run shadcn add @caliper/<name>. No registry config needed.

3

Motion parts

Magnetic, DrawOn, CursorLabel and AnimatedList.

4

Depth set

Ten parts where depth carries order, magnitude or state.

5

Upgrading

Nothing to migrate. Edit the source you own.

6
Page 1 of 6

When to use

  • Release notes, short tours and reports of a few pages.
  • Content that is read in order and is finite.

When not to use

  • Long documents, search results or anything people jump around in.
  • Content that needs a table of contents.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/booklet

Adds its 5 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.

API reference

Booklet

10 props
PropTypeDefaultDescription
label *string—
pages *readonly ReactNode[]—One node per page. An odd count leaves the last page blank.
spreadnumber—Leaves turned, 0 to half the page count (rounded up). Controlled when set.
defaultSpreadnumber0
onSpreadChange((spread: number) => void)—
statusDepthStatus"ready"
messagesDepthMessages—
onRetry(() => void)—
disabledboolean—
classNamestring—

Keyboard

→
Moves to the next item or value.
PageDown
Moves by a larger step, or to the next page.
←
Moves to the previous item or value.
PageUp
Moves by a larger step, or to the previous page.

Accessibility

It exposes group semantics, with aria-roledescription, aria-label, aria-live and aria-hidden kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/booklet.md

The index of every part is at /llms.txt.

More in Surfaces