UNPKG

mt-flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

44 lines (43 loc) 1.53 kB
import type { ComponentProps, FC, ReactNode } from 'react'; import type { DeepPartial, FlowbiteBoolean, FlowbiteColors, FlowbiteSizes } from '../../'; export interface FlowbiteTextInputTheme { base: string; addon: string; field: { base: string; icon: { base: string; svg: string; }; rightIcon: { base: string; svg: string; }; input: { base: string; sizes: FlowbiteTextInputSizes; colors: FlowbiteTextInputColors; withIcon: FlowbiteBoolean; withRightIcon: FlowbiteBoolean; withAddon: FlowbiteBoolean; withShadow: FlowbiteBoolean; }; }; } export interface FlowbiteTextInputColors extends Pick<FlowbiteColors, 'gray' | 'info' | 'failure' | 'warning' | 'success'> { [key: string]: string; } export interface FlowbiteTextInputSizes extends Pick<FlowbiteSizes, 'sm' | 'md' | 'lg'> { [key: string]: string; } export interface TextInputProps extends Omit<ComponentProps<'input'>, 'ref' | 'color'> { addon?: ReactNode; color?: keyof FlowbiteTextInputColors; helperText?: ReactNode; icon?: FC<ComponentProps<'svg'>>; rightIcon?: FC<ComponentProps<'svg'>>; shadow?: boolean; sizing?: keyof FlowbiteTextInputSizes; theme?: DeepPartial<FlowbiteTextInputTheme>; } export declare const TextInput: import("react").ForwardRefExoticComponent<TextInputProps & import("react").RefAttributes<HTMLInputElement>>;