UNPKG

@payfit/unity-components

Version:

23 lines (22 loc) 764 B
import { InputProps } from './Input.js'; export type TanstackInputProps = Omit<InputProps, 'name' | 'value' | 'defaultValue' | 'isInvalid'>; /** * `TanstackInput` is a controlled input wired to the TanStack Form field context. * It is based on the Unity `Input` component. * * Example: * ```tsx * function ExampleField() { * const form = useTanstackUnityForm<{ name: string }>({ validators: {} }) * return ( * <form> * <form.AppField name="name"> * {() => <TanstackInput placeholder="Your name" />} * </form.AppField> * </form> * ) * } * ``` */ declare const TanstackInput: import('react').ForwardRefExoticComponent<TanstackInputProps & import('react').RefAttributes<HTMLInputElement>>; export { TanstackInput };