Skip to main content
Clever Ops

Redline Proof

A live redline pass over the sentence, strikethroughs draw, corrections drop in, a REV stamp lands, and the final React headline settles clean. Tailwind-token primary ink.

Preview & code

Loading Redline Proof preview

Installation

pnpm dlx shadcn@latest add @cleverui/text-redline

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

Usage

tsx
import { TextRedline } from '@/components/ui/text-redline'
Exampletsx
import { TextRedline } from '@/components/ui/text-redline'

export default function TextRedlineDemo() {
  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">
      <TextRedline
        as="h1"
        text="Ship the release notes tonight."
        edits={[
          { draft: 'draft', final: 'release' },
          { draft: 'tomorrow.', final: 'tonight.' },
        ]}
        stamp="REV C"
        className="w-full max-w-xl text-center"
      />
      <p className="max-w-sm text-center text-sm leading-relaxed text-muted-foreground">
        One proofing pass: strike, correct, reflow, stamp. The final sentence is clean,
        only the revision mark remains.
      </p>
    </div>
  )
}

API reference

TextRedline accepts the following props.

PropTypeDefaultDescription
text*stringthe FINAL corrected sentence, ≤ 14 words
edits*TextRedlineEdit[]1-3 ops; each `final` must be an exact substring of text
stampstring'REV B'mono revision stamp that lands at completion
as'h1' | 'h2' | 'h3' | 'p''h2'
delaynumber0.2

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

Referenced types

Typestsx
export interface TextRedlineEdit {
  draft: string
  final: string
}

Frequently asked questions

How do I install the Redline Proof 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-redline`. 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 Redline Proof require?

Redline Proof 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 Redline Proof 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