@glaudsonsilva/react-images-upload
Version:
It's a fork project from https://github.com/JakeHartnell/react-images-upload. I make it to wait for the PR response. Check that repository for documentation and oficial commits.
29 lines (27 loc) • 714 B
TypeScript
import { Component } from 'react'
interface Props {
className?: string
fileContainerStyle?: object
onChange?: (files: File[], pictures: string[]) => void
buttonClassName?: string
buttonStyles?: object
withPreview?: boolean
accept?: string
name?: string
withIcon?: boolean
buttonText?: string
withLabel?: boolean
label?: string
labelStyles?: object
labelClass?: string
imgExtension?: string[]
maxFileSize?: number
fileSizeError?: string
fileTypeError?: string
errorClass?: string
errorStyle?: object
singleImage?: boolean
style?: object
defaultImages?: string[]
}
export default class ReactImageUploadComponent extends Component<Props> { }