Skip to content
caliper ui pro docs

Cloth image

A picture printed on cloth and hung from a rod. Gusts of wind billow it toward you in slow folds that catch the light; resting the pointer presses into it, and you can take hold of it and pull.

Pro

When to use

  • Exhibition, event and campaign banners.
  • A playful hero image for a brand or portfolio.

When not to use

  • Pictures people need to read, such as charts or text-heavy posters.
  • Product imagery that must stay true to shape.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/cloth-image

Adds its 4 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

ClothImage

3 props

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

PropTypeDefaultDescription
src *string—
alt *string—What the picture shows.
windnumber0.6Wind strength, 0 (still air) to 1 (a stiff breeze).

Keyboard

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

Accessibility

It exposes img semantics, with aria-label 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/cloth-image.md

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

More in Media