Plucked Text - React Component | Kokonut UI

Plucked Text

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

Install with npm

Open in Copy code

› Add the plucked-text component from Kokonut UI to this project with npx shadcn@latest add https://kokonutui.com/r/plucked-text.json, then show me how to use it.

no extra packages

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.

Copy Text

npx shadcn@latest add @kokonutui/plucked-text

Usage

Copy Text

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

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

Props

text

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

number Default: 1

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

strum

boolean Default: true

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

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.