Watermark
v1.0.1NewUpdated 20 Jul 2026Overlay watermark for confidential documents: wraps children in a relative container and tiles deterministic SVG text (or an image) on an absolutely-positioned pointer-events-none layer above the content. Theme-aware ink
Preview
Live · 9 stories▸Why this is recommendedwatermarkconfidentialoverlaystamp+4
The default, out-of-the-box Watermark.
- ✓Confidential document previews
- ✓Draft / paid / overdue stamps on invoices
- ✓Per-viewer identity stamps on exported reports
- Single or multi-line text (string | string[])
- Image tile alternative
- Rotate / gap / offset / fontSize / fontWeight controls
- Theme-aware default ink (low-alpha foreground token via CSS mask)
- pointer-events-none + aria-hidden — content stays fully readable and interactive
- MutationObserver tamper guard (on by default, documented as deterrent only)
- SSR-safe deterministic SVG data-URI generation
- ✕Real security or DRM (the guard is a deterrent, not a boundary)
- ✕Decorative page backgrounds (use HeroGradient or plain CSS)
Install
Ask your agent, or call the MCP tool directly. The resolved bundle is written into your project.
Usage
Tick variants in the left menu — each adds a tab with that variant’s real story source, the same code the preview above renders.
Props
contentWatermark text; array renders one line per entry
—imageImage URL tiled instead of text (rotate/gap/color are text-only)
—rotateText rotation in degrees (default -22)
—gapHorizontal / vertical space around each tile in px (default [96, 96])
—offsetTiling grid offset in px
—colorInk colour; defaults to a ~6% alpha mix of var(--color-foreground)
—zIndexWatermark layer z-index (default 10)
—guardRe-mount the layer if removed or tampered with (default true)
—