UNPKG

@0xsplits/splits-kit

Version:

UI Components for working with 0xSplits contracts

19 lines (18 loc) 870 B
import { Control, FieldValues, Path, UseFormSetError, UseFormSetValue } from 'react-hook-form'; declare const AddressInput: <FormType extends FieldValues>({ control, inputName, placeholder, setValue, setError, validationFunc, onClearInput, autoFocus, validAddressDisplay, supportsEns, }: { control: Control<FormType>; inputName: Path<FormType>; placeholder: string; setValue: UseFormSetValue<FormType>; setError: UseFormSetError<FormType>; validationFunc: (address: string) => (boolean | string) | Promise<boolean | string>; onClearInput?: () => void; autoFocus?: boolean; validAddressDisplay?: (address: string) => JSX.Element; supportsEns: boolean; }) => JSX.Element; export declare const AddressInputMessage: ({ message, isError, }: { message: string; isError?: boolean; }) => JSX.Element; export default AddressInput;