import { AriaTextFieldProps } from 'react-aria/useTextField'; import { ClassNameOrFunction, ContextValue, DOMProps, RACValidation, RenderProps, SlotProps } from './utils'; import { GlobalDOMAttributes } from '@react-types/shared'; import React from 'react'; export interface TextFieldRenderProps { /** * Whether the text field is disabled. * @selector [data-disabled] */ isDisabled: boolean; /** * Whether the value is invalid. * @selector [data-invalid] */ isInvalid: boolean; /** * Whether the text field is read only. * @selector [data-readonly] */ isReadOnly: boolean; /** * Whether the text field is required. * @selector [data-required] */ isRequired: boolean; } export interface TextFieldProps extends Omit, RACValidation, Omit, SlotProps, RenderProps, GlobalDOMAttributes { /** * The CSS [className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className) for the element. A function may be provided to compute the class based on component state. * @default 'react-aria-TextField' */ className?: ClassNameOrFunction; /** Whether the value is invalid. */ isInvalid?: boolean; } export declare const TextFieldContext: React.Context>; /** * A text field allows a user to enter a plain text value with a keyboard. */ export declare const TextField: (props: TextFieldProps & React.RefAttributes) => React.ReactElement> | null;