Ink Background - React Component | Kokonut UI

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

npx shadcn@latest add https://kokonutui.com/r/ink-background.json

Write freely.

A quiet page for first drafts. Nothing to set up, nothing to sync. Stir the ink and it settles back.

Installation

Ink Background is a free, open-source React component in the Kokonut UI background 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

string Default "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

boolean Default true

Set false for a still backdrop.

className

string

Extra 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.

Halftone Background

Caustics Background