UNPKG

@vertisanpro/flowbite-react

Version:

Non-Official React components built for Flowbite and Tailwind CSS

28 lines (27 loc) 1.04 kB
import type { ComponentProps, ReactNode } from 'react'; import React from 'react'; import type { DeepPartial } from '../../types'; import type { FlowbiteTextInputColors, FlowbiteTextInputSizes } from '../TextInput'; export interface FlowbiteFileInputTheme { root: FlowbiteFileInputRootTheme; field: FlowbiteFileInputFieldTheme; } export interface FlowbiteFileInputRootTheme { base: string; } export interface FlowbiteFileInputFieldTheme { base: string; input: FlowbiteFileInputFieldInputTheme; } export interface FlowbiteFileInputFieldInputTheme { base: string; colors: FlowbiteTextInputColors; sizes: FlowbiteTextInputSizes; } export interface FileInputProps extends Omit<ComponentProps<'input'>, 'type' | 'ref' | 'color'> { color?: keyof FlowbiteTextInputColors; helperText?: ReactNode; sizing?: keyof FlowbiteTextInputSizes; theme?: DeepPartial<FlowbiteFileInputTheme>; } export declare const FileInput: React.ForwardRefExoticComponent<FileInputProps & React.RefAttributes<HTMLInputElement>>;