Shape Hero - React Component | Kokonut UI

Shape Hero

A landing hero where shapes drop in, pile up under the headline and can be grabbed and thrown.

Install with

npx shadcn@latest add https://kokonutui.com/r/shape-hero.json

no extra packages

Components with a little gravity

Copy-paste components for React, built with Tailwind CSS and Motion. Grab a shape and throw it.

Installation

Shape Hero 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/shape-hero.tsx, so the code is yours to change.

npx shadcn@latest add @kokonutui/shape-hero

Usage

import ShapeHero from "@/components/kokonutui/shape-hero";

export default function Example() {
  return <ShapeHero as="h2" />;
}

Props

HeroShape

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.

Background Paths
A ribbon of lines in one color that keeps flowing at any size and parts around the cursor.
Wind
Streamlines that part around the cursor, swirl in its wake and scatter on click, built with React and Canvas.