Skip to content

Watermark

Free

A faint mark over a document, photo, or screen: a word, the viewer's email and date, or a logo, tiled, centered, or in a corner.

  • React 19
  • Tailwind CSS 4

Added Nov 17, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Wrap the content and pass the viewer's email and the date as two lines.

shared-agreement.tsx

Watermark

<div>
PropTypeDefaultDescription
textstring | readonly string[]"Confidential"The mark text, one string per line: a word, or the viewer's email and the date.
imagestring—A logo URL drawn above the text. A cross-origin logo needs CORS, or only the text draws.
layout"center""corner""tiled""tiled"tiled (a staggered grid, default), center (one large mark), or corner (one mark at the end-bottom corner).
anglenumber-24The turn of the mark in degrees. Default −24.
gapnumber64The space around each mark in a tile, in px. Default 64.
opacitynumber0.12The ink opacity, 0 to 1. Default 0.12. Print takes at least 0.24, so toner shows it.
fontSizenumber14The text size in px. Default 14; center reads well at 48 and up.
ink"auto""current""foreground""light""foreground"foreground (the theme ink, default), light (white), or auto (white with a difference blend: it shows over light and dark pixels), or current (the root text color).
guardbooleantruePuts the mark back when a script or the dev tools remove, hide, or restyle it. Default true.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Wrap the content in Watermark: the mark draws over its children, and clicks and text selection pass through.
  • Pass the viewer's email and the date as two lines (text={[email, date]}), so a copy shows its source.
  • Use layout="center" with a large fontSize for one status word, and layout="corner" with image for a logo.
  • Use ink="light" over a photo, and ink="auto" over content that has light and dark parts.
  • For text that stays hidden until the person shows it, use a Spoiler.
  • For text that must be blacked out, use a Text Redact Reveal.
Draw
none · the mark shows with the content in the first frame, with no fade
  1. AddedWatermark.
Open the release