@clubmed/trident-ui
Version:
Shared ClubMed React UI components
13 lines (12 loc) • 568 B
TypeScript
import { type UseValueProps } from '../../hooks/useValue';
import { type FormControlProps } from './FormControl.js';
import { type IconicNames, type IconicTypes } from '../../atoms/Icons';
export interface TextFieldProps<Value> extends FormControlProps<Value> {
description?: string;
icon?: IconicNames;
iconType?: IconicTypes;
errorMessage?: string;
dataTestId?: string;
formatter?: UseValueProps<Value>['formatter'];
}
export declare const TextField: <Value = string>(props: TextFieldProps<Value>) => import("react/jsx-runtime").JSX.Element;