Skip to Content
Kokonut UI

TX-05Texts

Plucked Text

A headline sitting on a string you can pluck, strum and let ring, built with React and real string physics.

Install with
no extra packages

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

Installation

Plucked 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/plucked-text.tsx, so the code is yours to change.

npx shadcn@latest add @kokonutui/plucked-text

Usage

import PluckedText from "@/components/kokonutui/plucked-text";

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

Props

text
stringDefault "Good vibrations"

The line of text that sits on the string. Keep it to one line.

className
string

Extra classes for the root element.

tension
numberDefault 1

How taut the string is. Higher rings faster and settles sooner.

strum
booleanDefault true

Strum the string when the cursor sweeps across it, not only on drag.

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.