TX-04Texts
Extruded Text
Zinc 3D extruded text lit by your pointer, with letters that press in like keycaps.
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-textUsage
import SwooshText from "@/components/kokonutui/swoosh-text";
export default function Example() {
return <SwooshText text="Extruded" />;
}Props
textstringDefault "Extruded"as"div" | "span" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6"Default "div"Element to render, e.g. "h1" for a heading.
depthnumberDefault 12Stacked layers behind each letter (clamped to 6-16).
lengthnumberDefault 0.2Total extrusion length, in em.
accentstringOptional color for the deepest layer only, e.g. "#f97316".
Also takes every prop of Omit<HTMLAttributes<HTMLElement>, "children">.
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.

