Tori Bryan

Annotated Text

Text 21

About

A span that draws a hand-sketched mark (underline, circle, highlight, box, bracket, strike, cross or arrow) on a word or phrase, plus sticker-style chips that can cycle through a list of words.

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

Code

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

Usage.tsx

import {
  AnnotatedText,
  AnnotatedTextChip,
  AnnotatedTextCycle,
} from "@/components/ui/annotated-text";

export default function AnnotatedTextDemo() {
  return (
    <div className="flex min-h-[420px] w-full items-center justify-center bg-background p-10 text-foreground">
      <p className="max-w-xl text-center text-2xl leading-relaxed text-balance">
        Ship a <AnnotatedText variant="highlight">beautiful</AnnotatedText>{" "}
        design system without the{" "}
        <AnnotatedText variant="strike">headache</AnnotatedText> busywork of
        building one from{" "}
        <AnnotatedText variant="circle" tone="info">
          scratch
        </AnnotatedText>
        . Add a <AnnotatedTextChip icon="✨">sticker chip</AnnotatedTextChip>{" "}
        for the fun parts, or let a word{" "}
        <AnnotatedTextCycle
          items={[{ label: "cycle" }, { label: "rotate" }, { label: "change" }]}
        />{" "}
        on its own.
      </p>
    </div>
  );
}

Dependencies

More by Tori Bryan

View all
  • Portfolio Banner

    Portfolio Banner

    36
  • Token Flow

    Token Flow

    29
  • Rich Text Editor

    Rich Text Editor

    12
  • Chat Composer

    Chat Composer

    3
  • Count

    Count

  • Reactions

    Reactions

  • Pixel snail

    Pixel snail

  • Integration Orbit

    Integration Orbit

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    124
  • Text Reveal

    Text Reveal

    33
  • Shine Border

    Shine Border

    984
  • Motion Blur Text

    Motion Blur Text

    41
  • Rainbow Text Effect

    Rainbow Text Effect

    52
  • NeonRGBTextEffect

    NeonRGBTextEffect

    152
  • Word Rotate

    Word Rotate

    65
  • Toolbar

    Toolbar

    50