UNPKG

@bothub-chat/ui

Version:

Bothub UI Components

17 lines (16 loc) 666 B
import React from 'react'; export type DropzoneFieldChangeEventHandler = (files: File[]) => void; export type DropzoneFieldProps = { leftLabel?: string | React.ReactNode; rightLabels?: string[] | React.ReactNode[]; placeholder?: React.ReactNode; error?: string; files?: File[]; disabled?: boolean; fullWidth?: boolean; onChange?: DropzoneFieldChangeEventHandler; multiple?: boolean; accept?: string; id?: string; } & Omit<React.ComponentProps<'div'>, 'placeholder' | 'onChange'>; export declare const DropzoneField: React.ForwardRefExoticComponent<Omit<DropzoneFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;