Skip to content
caliper ui pro docs

Aperture iris

A camera aperture over some content. A hexagonal opening widens from a point until it clears the frame, or narrows again to close; the content shows through it, and the blade edges scale with it.

Pro
A mountain ridge at dusk

When to use

  • Capture states, photo and video reveals.
  • A reveal that should feel like a lens rather than a fade.

When not to use

  • Content people need at once.
  • Many on one screen.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/aperture-iris

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

ApertureIris

2 props

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

PropTypeDefaultDescription
open *boolean—Opens the aperture when true and closes it when false.
children *ReactNode—What the aperture reveals: a photo, a video, a result.

Keyboard

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

Accessibility

It is built on native elements and keeps aria-hidden 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/aperture-iris.md

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

More in Media