fictoan-react
Version:
A full-featured, designer-friendly, yet performant framework with plain-English props and focus on rapid iteration.
33 lines (32 loc) • 1.38 kB
TypeScript
import React from "react";
import { BaseInputComponentProps } from '../BaseInputComponent/constants';
import { InputLabelCustomProps } from '../InputLabel/InputLabel';
import { ColourPropTypes } from '../../Element/constants';
export type FileUploadElementType = HTMLInputElement;
export type FileUploadProps = Omit<BaseInputComponentProps<HTMLInputElement>, "onChange"> & InputLabelCustomProps & {
accept?: string;
allowMultipleFiles?: boolean;
capture?: "user" | "environment";
height?: string;
onChange?: (files: File[]) => void;
instructionMainText?: string;
instructionSubText?: string;
badgeBgColour?: ColourPropTypes;
badgeBgColor?: ColourPropTypes;
badgeTextColour?: ColourPropTypes;
badgeTextColor?: ColourPropTypes;
};
export declare const FileUpload: React.ForwardRefExoticComponent<Omit<BaseInputComponentProps<HTMLInputElement>, "onChange"> & InputLabelCustomProps & {
accept?: string;
allowMultipleFiles?: boolean;
capture?: "user" | "environment";
height?: string;
onChange?: (files: File[]) => void;
instructionMainText?: string;
instructionSubText?: string;
badgeBgColour?: ColourPropTypes;
badgeBgColor?: ColourPropTypes;
badgeTextColour?: ColourPropTypes;
badgeTextColor?: ColourPropTypes;
} & React.RefAttributes<HTMLInputElement>>;
//# sourceMappingURL=FileUpload.d.ts.map