UNPKG

react-advanced-cropper

Version:

The react cropper library that gives the possibility to create croppers exactly suited for your website design

16 lines (15 loc) 640 B
import React, { CSSProperties } from 'react'; import { CropperTransitions, CropperImage, CropperState } from 'advanced-cropper'; interface DesiredCropperRef { getState: () => CropperState | null; getTransitions: () => CropperTransitions; getImage: () => CropperImage | null; } export interface CropperBackgroundImageProps { className?: string; cropper: DesiredCropperRef; crossOrigin?: 'anonymous' | 'use-credentials' | boolean; style?: CSSProperties; } export declare const CropperBackgroundImage: React.ForwardRefExoticComponent<CropperBackgroundImageProps & React.RefAttributes<HTMLImageElement>>; export {};