UNPKG

react-box-tools

Version:

Box tools react components, utils and hooks

24 lines (17 loc) 744 B
import { DetailedHTMLProps } from 'react'; import { InputHTMLAttributes } from 'react'; import { JSX } from 'react/jsx-runtime'; import { SVGProps } from 'react'; declare type ControlBase = { label?: string; error?: string; }; declare type SvgIconProps = SVGProps<SVGSVGElement>; export declare const TextBox: (props: TextBoxProps) => JSX.Element; export declare type TextBoxProps = Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'type' | 'id' | 'ref'> & { type?: TextBoxType; icon?: React.ReactElement<SvgIconProps>; clearable?: ConstrainBoolean; } & ControlBase; declare type TextBoxType = 'text' | 'password' | 'email' | 'number' | 'url' | 'tel'; export { }