@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.
26 lines (25 loc) • 1.13 kB
TypeScript
import { AirplaneFile } from "airplane";
import { ReactNode } from "react";
import { FileInputTValue } from "../../state/components/file-input/reducer";
export declare const BasicFileInputComponent: import("react").ForwardRefExoticComponent<{
accept?: string[] | undefined;
disableDragAndDrop?: boolean | undefined;
clearable?: boolean | undefined;
multiple?: boolean | undefined;
maxFiles?: number | undefined;
maxSize?: number | undefined;
label?: ReactNode;
placeholder?: string | undefined;
description?: ReactNode;
error?: ReactNode;
value?: 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 & import("react").RefAttributes<HTMLButtonElement>>;