UNPKG

@nlabs/gothamjs

Version:
30 lines (29 loc) 1.24 kB
/** * Copyright (c) 2025-Present, Nitrogen Labs, Inc. * Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms. */ import React from 'react'; 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: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;