UNPKG

@bothub-chat/ui

Version:

Bothub UI Components

20 lines (19 loc) 608 B
import React from 'react'; export type FileFieldChangeEventHandler = (files: File[]) => unknown; export interface FileFieldProps extends Omit<React.ComponentProps<'div'>, 'onChange'> { label?: React.ReactNode; placeholder?: string; error?: string | boolean; files?: File[]; disabled?: boolean; fullWidth?: boolean; fullNameFiles?: boolean; onChange?: FileFieldChangeEventHandler; icon?: React.ReactNode; multiple?: boolean; accept?: string; id?: string; open?: boolean; } export declare const FileField: React.FC<FileFieldProps>; export * from './styled';