Skip to content
caliper ui pro docs

Progressive blur

A blur that deepens toward one edge, for captions over photos and the ends of a scrolling media row. Stacked layers each blur twice as much as the last and are masked to their own band, so the frost rises smoothly instead of stopping at a line.

Pro
Forest from above

Above the tree line

Aiko Tanaka · 14 Oct

Cover

When to use

  • A caption or control laid over a photo or video.
  • The ends of a horizontal row of media, to show there is more.

When not to use

  • Text people read through, tables and rows; the blur costs legibility.
  • Large areas on low-end devices; each layer is a backdrop filter.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/progressive-blur

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

ProgressiveBlur

5 props
PropTypeDefaultDescription
side"left" | "right" | "top" | "bottom""bottom"
sizestring"40%"How far in from the edge the blur reaches: a length or a percentage of the parent.
strengthnumber16The strongest blur, at the edge, in pixels.
layersnumber5
classNamestring—

Keyboard

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

Accessibility

It is built on native elements, so roles and focus come from the browser.

Notes for AI

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

/docs/components/progressive-blur.md

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

More in Surfaces