BG-10BackgroundsNew, October 21, 2026
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.
PRODither Reveal Hero and more like it are in Kokonut UI Pro
Installation
Rain Glass 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/rain-glass-background.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/rain-glass-backgroundUsage
import RainGlassBackground from "@/components/kokonutui/rain-glass-background";
export default function Example() {
return <RainGlassBackground />;
}Props
srcstringDefault built-inThe view behind the window. Served with CORS so WebGL can read it.
titlestringDefault "Stay in when it rains."childrenReactNodeContent under the headline.
rainnumberDefault 0.6How hard it rains, from 0 (a few drops) to 1 (a downpour).
interactivebooleanDefault trueSet false for a window you can't wipe.
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.
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.
Rhythm HeroPRO
A health and sleep app hero with hairline rings breathing a 4-7-8 cycle, a week of sleep-stage bars and calm stats. Part of Kokonut UI Pro.