Skip to Content
Kokonut UI

BG-08BackgroundsNew, October 21, 2026

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.

Install with
no extra packages

PRODither Reveal Hero and more like it are in Kokonut UI Pro

Installation

Ink 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/ink-background.tsx, so the code is yours to change.

npx shadcn@latest add @kokonutui/ink-background

Usage

import InkBackground from "@/components/kokonutui/ink-background";

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

Props

text
stringDefault "Write freely."

The headline written in ink. It bleeds when stirred and gathers again.

accent
string

Color of the ink a click drops. Leave it out for the same ink as the headline.

children
ReactNode

Content over the ink, under the headline.

interactive
booleanDefault true

Set false for a still backdrop.

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.