Skip to Content
Kokonut UI

TX-04Texts

Extruded Text

Zinc 3D extruded text lit by your pointer, with letters that press in like keycaps.

Install with
no extra packages

PROKinetic Type Hero and more like it are in Kokonut UI Pro

Installation

Extruded Text is a free, open-source React component in the Kokonut UI Texts collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/swoosh-text.tsx, so the code is yours to change.

npx shadcn@latest add @kokonutui/swoosh-text

Usage

import SwooshText from "@/components/kokonutui/swoosh-text";

export default function Example() {
  return <SwooshText text="Extruded" />;
}

Props

text
stringDefault "Extruded"
as
"div" | "span" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6"Default "div"

Element to render, e.g. "h1" for a heading.

depth
numberDefault 12

Stacked layers behind each letter (clamped to 6-16).

length
numberDefault 0.2

Total extrusion length, in em.

accent
string

Optional color for the deepest layer only, e.g. "#f97316".

Also takes every prop of Omit<HTMLAttributes<HTMLElement>, "children">.

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.