antd-img-crop
Version:
An image cropper for Ant Design Upload
14 lines (12 loc) • 336 B
TypeScript
import * as React from 'react';
export interface ImgCropProps {
aspect?: number;
shape?: 'rect' | 'round';
zoom?: boolean;
rotate?: boolean;
beforeCrop?: (file: File, fileList: File[]) => boolean;
modalTitle?: string;
modalWidth?: number | string;
}
declare const ImgCrop: React.FC<ImgCropProps>;
export default ImgCrop;