Skip to main content
Clever Ops

String Art

The headline built as string art, pins tap in along real glyph outlines and one continuous thread chords them until the word reads. React canvas text effect themed by Tailwind tokens.

Preview & code

Loading String Art preview

Installation

pnpm dlx shadcn@latest add @cleverui/text-string-art

Requires the @cleverui registry in your components.json, a one-off, two-line setup.

Usage

tsx
import { TextStringArt } from '@/components/ui/text-string-art'
Exampletsx
import { TextStringArt } from '@/components/ui/text-string-art'

export default function TextStringArtDemo() {
  return (
    <div className="relative mx-auto flex min-h-[380px] max-w-4xl flex-col items-center justify-center gap-6 overflow-hidden px-4 py-16 sm:px-6">
      <p className="font-mono text-[11px] uppercase tracking-[0.2em] text-muted-foreground sm:text-xs">
        Spectacle · pins &amp; one thread
      </p>
      <TextStringArt as="h1" text="FORM" className="w-full text-center" />
      <p className="max-w-md text-center text-sm leading-relaxed text-muted-foreground">
        Pins survey the glyph outline. One continuous thread laces chords clipped
        inside the letterforms until the word densifies into type.
      </p>
    </div>
  )
}

API reference

TextStringArt accepts the following props.

PropTypeDefaultDescription
text*stringbudget ≤ 16 chars, pins sample the glyph outlines at display size
pinPitchnumber14px between pins along the glyph outline
speednumber1
as'h1' | 'h2' | 'h3' | 'p''h2'heading level of the sr-only text

…plus everything from React.HTMLAttributes<HTMLElement>: className, event handlers, aria attributes and the rest pass straight through.

Frequently asked questions

How do I install the String Art component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/text-string-art`. The shadcn CLI copies the source into your project, you own the code from that point. You can also copy the source directly from this page.

What dependencies does String Art require?

String Art has no npm dependencies beyond React and Tailwind CSS itself, so there is nothing extra to install or keep updated.

Can I theme String Art to match my brand?

Yes. The component is styled entirely with Tailwind utilities over standard design tokens (primary, background, muted, border), so it inherits your existing shadcn/ui theme automatically. Change your CSS variables and the component follows, no source edits needed for palette, radius, or fonts.

Want this built for you?

CleverUI is built by the Clever Ops web team. If you'd rather ship a hand-coded, fast, custom website than assemble one, we build them for Australian businesses every week.

Explore web development services