Installation
$ pnpm dlx shadcn@latest add @pdfcn/takumi/watermark
Usage
import { PdfWatermark } from "@/components/pdf/watermark";
import { Text } from "@/components/pdf/text";<PdfWatermark text="DRAFT" />API Reference
PdfWatermark
| Prop | Type | Default |
|---|---|---|
text | string | - |
opacity | number | - |
fontSize | number | - |
color | string | - |
angle | number | - |
position | 'center' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | - |
fixed | boolean | true |
children | never | - |