BG-09BackgroundsNew, October 21, 2026
Caustics Background
A hero on the floor of a pool. Light ripples across it, clicks drop rings that bend the light, and the headline's shadow wobbles below.
PRODither Reveal Hero and more like it are in Kokonut UI Pro
Installation
Caustics Background is a free, open-source React component in the Kokonut UI Backgrounds collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/caustics-background.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/caustics-backgroundUsage
import CausticsBackground from "@/components/kokonutui/caustics-background";
export default function Example() {
return <CausticsBackground />;
}Props
titlestringDefault "Swim before work."The headline. It floats on the water and casts a shadow on the floor.
childrenReactNodeContent under the headline. Give an element data-shadow="box" and it casts a shadow too.
interactivebooleanDefault trueSet false for water you can't touch.
classNamestringExtra classes for the root element.
Dependencies
| Needs | Version | Comes from |
|---|---|---|
cn from lib/utils.ts | shadcn init | |
| React | 19 | Your app |
| Tailwind CSS | 4 | Your app |
No provider, font or global CSS to set up: the file works as soon as it lands.
Ink Background
A hero written in ink on water. Stir it and the letters bleed, click to drop ink, and the headline gathers itself again. Built with WebGL.
Rain Glass Background
A hero seen through a rainy window. Drops gather and run, each a tiny lens on the view, and dragging wipes the fog off the glass.