Water ripple
A photograph under a sheet of water. The pointer trails small ripples, a press drops a stone, and light rain can fall on its own; the rings spread, cross, bend the picture beneath and catch the light before they die away.
When to use
- Travel, hospitality and nature imagery that should invite a touch.
- A hero picture on a calm page.
When not to use
- Pictures with text or faces that must stay sharp.
- Several on one page.
Installation
pnpm dlx shadcn@latest add @caliper/water-ripple
Adds its 3 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
WaterRipple
3 props
Also accepts the native props of its root element and a ref.
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/water-ripple.mdThe index of every part is at /llms.txt.