UNPKG

@payfit/unity-components

Version:

22 lines (21 loc) • 762 B
import { TextAreaProps as CoreTextAreaProps } from '../../../../core/components/text-area/TextArea.js'; export type TextAreaProps = Omit<CoreTextAreaProps, 'name' | 'value' | 'defaultValue' | 'isInvalid'>; /** * `TextArea` is a controlled textarea wired to the TanStack Form field context. * * Example: * ```tsx * function ExampleField() { * const form = useUnityForm<{ bio: string }>({ validators: {} }) * return ( * <form> * <form.AppField name="bio"> * {() => <TextArea placeholder="Short bio" rows={4} />} * </form.AppField> * </form> * ) * } * ``` */ declare const TextArea: import('react').ForwardRefExoticComponent<TextAreaProps & import('react').RefAttributes<HTMLTextAreaElement>>; export { TextArea };