Skip to content

Text Cross Annotation

Pro

A hand-drawn cross draws itself over the text, like a pen mark that cancels it.

  • React 19
  • Tailwind CSS 4

Added Nov 15, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Text Cross Annotation needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
20
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Wrap the phrase to mark inside your text. Use delay to draw one mark after another.

pricing-section.tsx

TextCrossAnnotation

<div>
PropTypeDefaultDescription
tone"destructive""info""neutral""success""warning"—The status color of the mark: neutral (the text ink), info, success, warning, or destructive. Default: no status, the primary ink (warning for a highlight).
showboolean—Show the mark. Set it to false to erase the mark, and back to true to draw it again.
trigger"mount""view"—When the mark draws: view (default) the first time the text is on screen, mount at once.
delaynumber—Seconds to wait before the mark draws, to follow another mark. Default 0.
paddingnumber—The space between the text and a box, circle, or bracket, in px. Default 4.
strokeWidthnumber—The stroke width in px (not for highlight, which is as tall as the line). Default 2.
seednumber—The seed of the hand-drawn bends: another number draws another mark. Default 1.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Wrap the phrase to mark, inside the text: the mark follows it line by line when it wraps.
  • Use delay to chain marks in one sentence, and show to erase a mark and draw it again.
  • Set tone to give the mark a status color; with no tone it uses the primary ink.
  • For the same effect with another look, use Text Underline Annotation.
  • For a plain, still highlight on a phrase or on the words that match a search, use Mark.
  • For a text whose letter outlines draw, then fill, use Text Stroke Draw.
Draw
draw · 900ms · ease-panel (0.2, 0.4, 0.2, 1) · each stroke draws from its start to its end; the strokes draw in turn and share the 900ms, so three lines take as long as one
Start
instant · each stroke shows when its own draw starts, after `delay` seconds, at mount or the first time it is in view
Erase
fade-exit · 90ms · ease-out · `show={false}` fades the strokes out and pulls them back
  1. AddedText Cross Annotation.
Open the release