@clubmed/trident-ui
Version:
Shared ClubMed React UI components
13 lines (12 loc) • 547 B
TypeScript
import { UseValueProps } from '../hooks/useValue';
import { FormControlProps } from './FormControl';
import { IconicNames, IconicTypes } from '@clubmed/trident-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;