UNPKG

856 BTypeScriptView Raw
1import React from 'react';
2import FormFileInput from './FormFileInput';
3import FormFileLabel from './FormFileLabel';
4import { BsCustomPrefixProps, BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
5export interface FormFileProps extends BsPrefixPropsWithChildren, BsCustomPrefixProps, Pick<React.HTMLAttributes<HTMLElement>, 'style'> {
6 inputAs?: React.ElementType;
7 id?: string;
8 disabled?: boolean;
9 label?: React.ReactNode;
10 custom?: boolean;
11 isValid?: boolean;
12 isInvalid?: boolean;
13 feedback?: React.ReactNode;
14 feedbackTooltip?: boolean;
15 lang?: string;
16 'data-browse'?: any;
17}
18declare type FormFile = BsPrefixRefForwardingComponent<'input', FormFileProps> & {
19 Input: typeof FormFileInput;
20 Label: typeof FormFileLabel;
21};
22declare const FormFile: FormFile;
23export default FormFile;