UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

42 lines 1.25 kB
import { ReactNode } from 'react'; export type UploadFilePanelProps = { /** * An optional message that appears in the upload panel (e.g. to describe the upload destination). */ message?: ReactNode; /** * Called when upload is invoked. * @param files */ onUploadFileList: (files: ArrayLike<File>) => void; /** * If true, allow uploading multiple files. Otherwise, only one file may be uploaded. */ allowMultipleFiles: boolean; /** Whether the component should show a loader. * @default false */ isLoading?: boolean; /** * Text to show when `isLoading` is true. * @default 'Loading...' */ loadingText?: string; /** * Whether to disable the upload panel (e.g. when the project storage is full). * @default false */ disabled?: boolean; /** * Whether to enable drag-and-drop to upload functionality. * @default false */ disableDragAndDrop?: boolean; }; /** * Provides a generic UI component to upload one or more files. * @param props * @constructor */ export default function UploadFilePanel(props: UploadFilePanelProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=UploadFilePanel.d.ts.map