erictsai83

Text Decode

Text

About

Random characters settle into readable text, one character at a time. Change the text to decode a new message.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Text Decode to your project and fits it to your theme.

Code

How Text Decode is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { Terminal } from "lucide-react";

import { TextDecode } from "@/components/ui/ericts-text-decode";

export default function Preview() {
  return (
        <div className="w-full max-w-sm overflow-hidden rounded-2xl border bg-background shadow-sm">
          <div className="flex items-center justify-between border-b px-5 py-3">
            <div className="flex items-center gap-2 text-xs text-muted-foreground">
              <Terminal className="size-3.5" aria-hidden />
              <span>transmission</span>
            </div>
            <span className="font-mono text-[10px] tracking-widest text-muted-foreground">
              UTF–8
            </span>
          </div>
          <div className="flex min-h-44 flex-col justify-center gap-4 px-5 sm:px-7">
            <p className="font-mono text-[10px] tracking-[0.18em] text-muted-foreground">
              A MESSAGE FOR YOU
            </p>
            <div className="font-mono text-[clamp(1.25rem,4vw,1.75rem)] tracking-tight">
              <span className="mr-3 text-muted-foreground/40" aria-hidden>
                ›
              </span>
              <TextDecode replayKey={0} duration={1100}>
                Hello, human.
              </TextDecode>
            </div>
            <p className="text-xs text-muted-foreground">
              A little noise. Then everything makes sense.
            </p>
          </div>
        </div>
  );
}

Dependencies

More by erictsai83

View all
  • Adaptive Drawer

    Adaptive Drawer

  • Status Button

    Status Button

  • Floating Shortcut Button

    Floating Shortcut Button

  • Filter Tags

    Filter Tags

  • Feedback Popover

    Feedback Popover

  • Expandable Toolbar

    Expandable Toolbar

  • Expandable Toggle Button

    Expandable Toggle Button

  • Arc Menu

    Arc Menu

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    135
  • Astryx Chat Tokenized Text

    Astryx Chat Tokenized Text

    14
  • Scroll Fill Headline

    Scroll Fill Headline

    67
  • Blur Reveal

    Blur Reveal

    399
  • Apple Hello Effect

    Apple Hello Effect

    692
  • Rainbow Text Effect

    Rainbow Text Effect

    61
  • Text Reveal

    Text Reveal

    31
  • NeonRGBTextEffect

    NeonRGBTextEffect

    156