UNPKG

@project44-manifest/react

Version:

Manifest Design System react components

29 lines 951 B
import { As, Props } from '../../system'; import { TextFieldBaseElement, TextFieldBaseOptions } from '../TextFieldBase'; export interface TextFieldOptions<T extends As = TextFieldBaseElement> extends TextFieldBaseOptions<T> { /** * The default value (uncontrolled). */ defaultValue?: string; /** * Temporary text that occupies the text input when it is empty. */ placeholder?: string; /** * The size of the combobox * * @default 'medium' */ size?: 'medium' | 'small'; /** * The current value (controlled). */ value?: string; /** * Handler that is called when the value changes. */ onChange?: (value: string) => void; } export declare type TextFieldProps<T extends As = TextFieldBaseElement> = Props<TextFieldOptions<T>>; export declare const TextField: import("../../system").Component<TextFieldOptions<"div">>; //# sourceMappingURL=TextField.d.ts.map