next-pixelate
Version:
NextJS library to pixelate images or elements
11 lines (10 loc) • 433 B
TypeScript
import React from "react";
export declare type ImagePixelatedProps = React.CanvasHTMLAttributes<HTMLCanvasElement> & {
src: string;
width?: number;
height?: number;
pixelSize?: number;
centered?: boolean;
fillTransparencyColor?: string;
};
export declare const ImagePixelated: ({ src, width, height, pixelSize, centered, fillTransparencyColor, ...props }: ImagePixelatedProps) => React.JSX.Element;