UNPKG

@appello/web-ui

Version:

Web ui library for a better development experience

16 lines (15 loc) 675 B
import * as React from 'react'; import { ReactNode } from 'react'; import { Control, FieldPathByValue, FieldValues } from 'react-hook-form'; import { InputSize, TextInputProps } from '../TextInput'; export interface PasswordFieldProps<TFormValues extends FieldValues> extends TextInputProps { name: FieldPathByValue<TFormValues, string>; control: Control<TFormValues>; label?: string; className?: string; autoComplete?: boolean | string; size?: InputSize; labelChildren?: ReactNode; labelClassName?: string; } export declare const PasswordField: <TFormValues extends FieldValues>(props: PasswordFieldProps<TFormValues>) => React.ReactElement;