Watermark

Visible and screenshot-tracing blind watermarks.

Watermark

Visible watermark

Text repeats across the whole container, covering content without intercepting pointer input. Adjust spacing, angle, font size, color and opacity.

Blind watermark and screenshot reveal

Set mode="blind" to encode an identifier through tiny color-channel differences, or mode="both" to combine it with a visible watermark. Pass an application user or session ID through blind-content; the revealed identifier can be read manually and matched to application records. The component neither collects identity nor detects screenshots.

Capture the document below as an original PNG, then choose “Reveal a screenshot”. revealWatermark(file, { gain: 32 }) returns a revealed PNG data URL locally in the browser without uploading the image. This example uses a demonstration identifier only.

This reveals a page color signal; it is not encryption or automatic identity verification. Original PNGs and flat backgrounds work best. Colorful content can interfere; JPEG compression, resizing, filters or photographs may destroy the signal. It cannot prevent editing the page before capturing it. Blind regions use the theme background by default; keep custom backgrounds opaque.

API

PROPS

Property
Type
Values
Description
default
Example
More
content
String
text
Visible watermark text; supports line breaks. Also the fallback blind identifier.
—
—
mode
String
visibleblindboth
Visible, blind, or combined watermarks.
visible
—
blind-content
String
text
Separate blind identifier, such as an application-provided user or session ID. Falls back to content.
—
—
blind-strength
Number
1 - 16
Blind color-channel modulation; higher values improve reveal contrast but become more perceptible.
2
—
gap
Number
0 - 1000
Spacing between watermark tiles in pixels.
96
—
opacity
Number
0 - 1
Visible watermark opacity only; does not affect blind watermarks.
0.12
—
rotate
Number
-360 - 360
Rotation of each watermark tile.
-18
—
font-size
Number
8 - 96
Watermark font size in pixels.
13
—
color
String
CSS color
Visible watermark color; defaults to the HSL text token.
—
—
z-index
Number
number
Watermark stacking level inside its container.
10
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied