NUIv3.0.7

Watermark

A fully accessible, token-driven Watermark component built with strict WAI-ARIA compliance.

tsx
import { Watermark } from '@nofinite/nui';

Interactive Preview

Loading preview...

Usage

Basic Example

tsx
import { Watermark } from '@nofinite/nui';

<Watermark />

API Reference

PropTypeDefaultDescription
text*string | string[]The text to display. Can be an array for multi-line watermarks.
opacitynumber0.05
rotatenumber-20
gapnumber120The spacing between watermark instances
fontSizenumber16
colorstringcurrentColor
zIndexnumber10

Accessibility & Guidelines

  • Semantic Tokens: Built strictly using Nuicss semantic tokens (bg-surface, text-default, border-subtle, bg-primary).
  • Keyboard Navigation: Adheres to strict WAI-ARIA standards.
  • Screen Reader Support: Includes semantic roles and live regions where appropriate.