UNPKG

@appello/web-ui

Version:

Web ui library for a better development experience

17 lines (16 loc) 671 B
import './styles.scss'; import * as React from 'react'; import { ReactNode } from 'react'; import { Control, FieldPathByValue, FieldValues } from 'react-hook-form'; export interface PhotoFieldProps<TFormValues extends FieldValues, TName> { name: TName; control: Control<TFormValues>; label?: string; className?: string; labelClassName?: string; photoPlaceholder?: string; labelChildren?: ReactNode; } type PhotoValue = File | string | null; export declare const PhotoField: <TFormValues extends FieldValues, TName extends FieldPathByValue<TFormValues, PhotoValue>>(props: PhotoFieldProps<TFormValues, TName>) => React.ReactElement; export {};