Watermark: tiles tilted, repeated text or a logo over the content.
4 exports
Live example
Preview
Q4 Finance Report
In the fourth quarter revenue grew 18% over the previous quarter. The biggest contribution came from business
subscriptions; on the personal side the refund rate fell to 2.1%.
The goal for next quarter is to grow the sales team in new regions and renew the payment
infrastructure. Detailed tables are attached.
Code
TSX
import { Watermark } from "@yasinsensoy/web";<Watermark content={["CONFIDENTIAL","[email protected]"]}> <article>…</article></Watermark>
Events
Events appear here when you interact with the preview.
Import
TSX
import { Watermark, getWatermarkStyle } from "@yasinsensoy/web";
Watermark: tiles tilted, repeated text or a logo over the content. For a confidential document preview ("CONFIDENTIAL – [email protected]"), a draft page, a test environment, a photo preview before payment.
Server component: the pattern is generated as SVG and tiled with a CSS mask; no JavaScript, visible on the first paint.
Theme aware: the text color comes from CSS (color="var(--primary)"); it adapts automatically when the light/dark theme changes.
Doesn't block clicks: the layer is pointer-events: none; content below can be selected and clicked. Screen readers don't read the watermark.
Printing: visible in print too.
Protection: with protect a deleted or modified layer is restored.
To use it on your own element see getWatermarkStyle.