@airplane/views
Version:
A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.
28 lines (27 loc) • 1.22 kB
TypeScript
/// <reference types="react" />
import { AirplaneFile } from "airplane";
export declare const DropzoneFileInputComponent: import("react").ForwardRefExoticComponent<{
accept?: string[] | undefined;
disableDragAndDrop?: boolean | undefined;
clearable?: boolean | undefined;
multiple?: boolean | undefined;
maxFiles?: number | undefined;
maxSize?: number | undefined;
label?: import("react").ReactNode;
placeholder?: string | undefined;
description?: import("react").ReactNode;
error?: import("react").ReactNode;
value?: import("../../state/components/file-input/reducer").FileInputTValue;
onChange: (v: AirplaneFile[]) => void;
disabled?: boolean | undefined;
radius?: import("@mantine/core").MantineSize | undefined;
getUploadURL?: ((filename: string, sizeBytes: number) => Promise<{
uploadID: string;
readURL: string;
writeURL: string;
}>) | undefined;
sx?: import("@mantine/core").CSSObject | undefined;
} & import("../layout/layout.types").CommonLayoutProps & import("../styling.types").CommonStylingProps & {
id?: string | undefined;
required?: boolean | undefined;
} & import("react").RefAttributes<HTMLDivElement>>;