Skip to main content
Clever Ops

Punch Tape

A punched paper tape feeds through a reader head and your React headline prints glyph by glyph, the encoding visible in the holes. Tailwind tokens; one pass, then stillness.

Preview & code

Loading Punch Tape preview

Installation

pnpm dlx shadcn@latest add @cleverui/text-punch-tape

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

Usage

tsx
import { TextPunchTape } from '@/components/ui/text-punch-tape'
Exampletsx
import { TextPunchTape } from '@/components/ui/text-punch-tape'

export default function TextPunchTapeDemo() {
  return (
    <div className="relative mx-auto flex min-h-[400px] max-w-3xl flex-col items-center justify-center gap-8 overflow-hidden px-4 py-16 sm:px-6">
      <TextPunchTape
        as="h1"
        text="SEND BRIEF"
        caption="PAPER TAPE · 5-BIT · CHAN 03"
        className="w-full"
      />
      <p className="max-w-sm text-center text-sm leading-relaxed text-muted-foreground">
        Five holes encode each glyph. The reader slits the column under the lamp,
        print is the mechanical consequence, once, then quiet.
      </p>
    </div>
  )
}

API reference

TextPunchTape accepts the following props.

PropTypeDefaultDescription
text*stringthe message, uppercased, budget ≤ 20 chars
captionstring'PAPER TAPE · 5-BIT'mono micro-label above the machine
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 Punch Tape 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-punch-tape`. 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 Punch Tape require?

Punch Tape uses motion on top of React and Tailwind CSS. You don't need to install it manually, the shadcn CLI resolves and installs npm dependencies automatically when you add the component.

Can I theme Punch Tape 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