UNPKG

funda-ui

Version:

React components using pure Bootstrap 5+ which does not contain any external style and script libraries.

60 lines (59 loc) 2.66 kB
import React, { ChangeEvent, KeyboardEvent, FocusEvent } from 'react'; export declare type InputProps = { contentRef?: React.ForwardedRef<any>; wrapperClassName?: string; controlClassName?: string; controlExClassName?: string; controlGroupWrapperClassName?: string; controlGroupTextClassName?: string; type?: string; defaultValue?: string; value?: string; requiredLabel?: React.ReactNode | string; label?: React.ReactNode | string; units?: React.ReactNode | string; name?: string; step?: string | number; min?: string | number; max?: string | number; src?: string; size?: string | number; minLength?: string | number; maxLength?: string | number; alt?: string; inputMode?: "search" | "text" | "email" | "tel" | "url" | "none" | "numeric" | "decimal" | undefined; disabled?: boolean; required?: boolean; readOnly?: boolean; placeholder?: string; pattern?: string; iconLeft?: React.ReactNode | string; iconRight?: React.ReactNode | string; appendControl?: React.ReactNode; aiPredict?: boolean; aiPredictRemainingTextRGB?: number[]; aiPredictConfirmKey?: Array<string[]>; aiPredictFetchFuncAsync?: any; aiPredictFetchFuncMethod?: string; aiPredictFetchFuncMethodParams?: (string | number)[]; aiPredictFetchCallback?: (data: any) => void; /** -- */ id?: string; style?: React.CSSProperties; autoComplete?: string; autoCapitalize?: string; spellCheck?: boolean; tabIndex?: number; [key: `data-${string}`]: string | undefined; onChangeCallback?: (e: ChangeEvent<HTMLInputElement> | FocusEvent<HTMLInputElement>, el: HTMLInputElement) => string | void; onInputCallback?: (e: ChangeEvent<HTMLInputElement>, el: HTMLInputElement) => string | void; onKeyPressedCallback?: (e: KeyboardEvent<HTMLInputElement>, el: HTMLInputElement) => string | void; onChange?: (e: ChangeEvent<HTMLInputElement> | KeyboardEvent<HTMLInputElement> | null, isComposition: boolean, el: HTMLInputElement, value: string) => void; onBlur?: (e: FocusEvent<HTMLInputElement>, param: boolean, el: HTMLInputElement) => void; onFocus?: (e: FocusEvent<HTMLInputElement>, param: boolean, el: HTMLInputElement) => void; onPressEnter?: (e: KeyboardEvent<HTMLInputElement>, el: HTMLInputElement) => void; onKeyDown?: (e: KeyboardEvent<HTMLInputElement>, el: HTMLInputElement) => void; onKeyUp?: (e: KeyboardEvent<HTMLInputElement>, el: HTMLInputElement) => void; }; declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<unknown>>; export default Input;