interface WatermarkProps {
    children?: ReactNode;
    className?: string;
    content?: string | string[];
    font?: {
        color?: string | CanvasGradient | CanvasPattern;
        fontFamily?: string;
        fontSize?: string | number;
        fontStyle?: "none" | "normal" | "italic" | "oblique";
        fontWeight?: number | "normal" | "light" | "weight";
        textAlign?: CanvasTextAlign;
    };
    gap?: [number, number];
    height?: number;
    image?: string;
    inherit?: boolean;
    offset?: [number, number];
    rootClassName?: string;
    rotate?: number;
    style?: CSSProperties;
    width?: number;
    zIndex?: number;
}

Properties

children?: ReactNode
className?: string
content?: string | string[]
font?: {
    color?: string | CanvasGradient | CanvasPattern;
    fontFamily?: string;
    fontSize?: string | number;
    fontStyle?: "none" | "normal" | "italic" | "oblique";
    fontWeight?: number | "normal" | "light" | "weight";
    textAlign?: CanvasTextAlign;
}

Type declaration

  • Optional color?: string | CanvasGradient | CanvasPattern
  • Optional fontFamily?: string
  • Optional fontSize?: string | number
  • Optional fontStyle?: "none" | "normal" | "italic" | "oblique"
  • Optional fontWeight?: number | "normal" | "light" | "weight"
  • Optional textAlign?: CanvasTextAlign
gap?: [number, number]
height?: number
image?: string
inherit?: boolean
offset?: [number, number]
rootClassName?: string
rotate?: number
style?: CSSProperties
width?: number
zIndex?: number

Generated using TypeDoc