UNPKG

@payfit/unity-components

Version:

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