Utilities
Watermark
Non-interactive repeating diagonal watermark overlay for sensitive documents and previews.
import { Watermark } from '@reactloom/ui';Examples
Document watermark
Q4 Revenue Summary
Protected internal report preview.
Net recurring revenue grew 24% quarter-over-quarter.
import { Card, Watermark } from '@reactloom/ui';
export default function BasicWatermark() {
return (
<Watermark text="CONFIDENTIAL" subtext="ReactLoom Preview">
<Card>
<Card.Header>
<Card.Title level={3}>Q4 Revenue Summary</Card.Title>
<Card.Description>Protected internal report preview.</Card.Description>
</Card.Header>
<p style={{ margin: 0 }}>Net recurring revenue grew 24% quarter-over-quarter.</p>
</Card>
</Watermark>
);
}API reference
| Prop | Type | Default |
|---|---|---|
textrequiredPrimary watermark text. | string | — |
subtextOptional secondary line. | string | — |
rotateRotation angle in degrees. | number | -24 |
opacityWatermark opacity between 0 and 1. | number | 0.14 |
tileSizeRepeating tile size in pixels. | number | 200 |
Usage guidelines
Do
- Keep opacity subtle (0.08–0.18) so foreground text stays readable.
Don’t
- Do not rely on CSS watermarks alone for DRM or access control.