Skip to content
caliper ui pro docs

Zip reveal

A panel closed with a zip. Drag the pull down and the two halves part in a V behind it, showing what is underneath. Let go past halfway and it zips the rest of the way open; before halfway and it zips shut.

Pro

Two nights, on us

Book a stay of five nights or more before the end of the month.

When to use

  • Teasing an offer, a result or a before-and-after.
  • A landing-page moment that earns a little play.

When not to use

  • Content people need at once.
  • Anything inside a scrolling list; the pull captures vertical drags.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/zip-reveal

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.

API reference

ZipReveal

5 props

Also accepts the native props of its root element and a ref.

PropTypeDefaultDescription
coverReactNode—The face of the closed panel. Defaults to a plain surface.
progressnumber—How far open it is, from 0 to 1.
defaultProgressnumber0
onProgressChange((progress: number) => void)—
labelstring"Zip"Names the pull for assistive technology, e.g. "Open the offer".

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It exposes slider semantics, with aria-hidden, aria-orientation, aria-label, aria-valuemin, aria-valuemax and aria-valuenow kept in step with state.

Notes for AI

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

/docs/components/zip-reveal.md

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

More in Surfaces