Skip to content
Alea0.1

Extras

Watermark

A faint repeated text over content: drafts and confidential previews.

Ant Design: Watermark

import { Watermark } from '@alea/ui';

Examples

Watermark

Over any content; decorative only.

Q4 roadmap

Plugins in the store, Alea phase 3, the icon kit.

Props

Watermark props

Repeats a faint text over content: drafts, confidential previews (Ant's Watermark). Decorative: hidden from screen readers, not a security measure.

PropTypeDefaultDescription
textrequiredstring-The text repeated across the area.
classNamestring-Extra class names for the root element.
gapnumber120Gap between marks in px. Default 120.
opacitynumber0.080 to 1. Default 0.08.
rotatenumber-Angle in degrees. Default -22.

Accessibility

  • Decorative and hidden from screen readers: say "Draft" in the page too if it matters.

Do and don't

Do

  • Say it in words too when it matters (Draft, Confidential).
  • Keep it faint so the content stays readable.

Don't

  • Don't rely on it for security.
  • Don't cover interactive controls with it.
Tested with axe, keyboard and screen reader roles