UNPKG

773 BTypeScriptView Raw
1import React from 'react';
2export interface WatermarkProps {
3 zIndex?: number;
4 rotate?: number;
5 width?: number;
6 height?: number;
7 image?: string;
8 content?: string | string[];
9 font?: {
10 color?: CanvasFillStrokeStyles['fillStyle'];
11 fontSize?: number | string;
12 fontWeight?: 'normal' | 'light' | 'weight' | number;
13 fontStyle?: 'none' | 'normal' | 'italic' | 'oblique';
14 fontFamily?: string;
15 textAlign?: CanvasTextAlign;
16 };
17 style?: React.CSSProperties;
18 className?: string;
19 rootClassName?: string;
20 gap?: [number, number];
21 offset?: [number, number];
22 children?: React.ReactNode;
23 inherit?: boolean;
24}
25declare const Watermark: React.FC<WatermarkProps>;
26export default Watermark;