UNPKG

@kwiz/fluentui

Version:

KWIZ common controls for FluentUI

24 lines (23 loc) 806 B
import * as React from "react"; import { ButtonEXProps } from "./button"; type base64Result = { base64: string; filename: string; }; interface iProps { showTitleWithIcon?: boolean; title?: string; /** Passing this will turn the button into a compound button */ secondaryContent?: string; limitFileTypes?: string[]; allowMultiple?: boolean; icon?: JSX.Element; onChange?: (newFile: File | File[], errors: string[]) => void; asBase64?: (files: base64Result[], errors: string[]) => void; buttonProps?: Partial<ButtonEXProps>; disabled?: boolean; /** limit file size in MB, for the asBase64 */ fileSizeLimit?: number; } export declare const FileUpload: (props: iProps & React.RefAttributes<HTMLButtonElement>) => React.JSX.Element | null; export {};