Skip to Content
Kokonut UI

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.

Install with
no extra packages

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-background

Usage

import CausticsBackground from "@/components/kokonutui/caustics-background";

export default function Example() {
  return <CausticsBackground />;
}

Props

title
stringDefault "Swim before work."

The headline. It floats on the water and casts a shadow on the floor.

children
ReactNode

Content under the headline. Give an element data-shadow="box" and it casts a shadow too.

interactive
booleanDefault true

Set false for water you can't touch.

className
string

Extra classes for the root element.

Dependencies

NeedsVersionComes from
cn from lib/utils.tsshadcn init
React19Your app
Tailwind CSS4Your app

No provider, font or global CSS to set up: the file works as soon as it lands.