@nlabs/gothamjs
Version:
Platform
25 lines (24 loc) • 1.08 kB
TypeScript
import type { GothamColor } from '../../utils/colorUtils.js';
import type { InputBorderType } from '../InputField/InputField.js';
export interface TextFieldProps extends React.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {
readonly borderColor?: GothamColor;
readonly borderType?: InputBorderType;
readonly className?: string;
readonly color?: GothamColor;
readonly defaultValue?: string;
readonly error?: boolean;
readonly errorColor?: GothamColor;
readonly hasError?: boolean;
readonly inputClass?: string;
readonly label?: string;
readonly labelClass?: string;
readonly labelColor?: GothamColor;
readonly multiline?: boolean;
readonly name: string;
readonly onValidate?: (isValid: boolean) => void;
readonly pattern?: string;
readonly placeholderColor?: GothamColor;
readonly rows?: number;
readonly textColor?: GothamColor;
}
export declare const TextField: import("react").ForwardRefExoticComponent<TextFieldProps & import("react").RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;