Docs: Add props documentation to FileUpload component (#27393)

This commit is contained in:
Peter Holmberg 2020-09-04 16:28:51 +02:00 committed by GitHub
parent a9daaadd50
commit 8e063ea82c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,10 +6,13 @@ import { stylesFactory, useTheme } from '../../themes';
import { ComponentSize } from '../../types/size';
export interface Props {
/** Callback function to handle uploaded file */
onFileUpload: (event: FormEvent<HTMLInputElement>) => void;
/** Accepted file extensions */
accept?: string;
/** Overwrite or add to style */
className?: string;
/** Button size */
size?: ComponentSize;
}