UNPKG

@fluster.io/dev

Version:

25 lines (24 loc) 846 B
import { ReactNode } from 'react'; import { FormInputProps } from '../../types'; import { FieldValues } from 'react-hook-form'; export interface SelectOption<J extends string | number> { label: string; value: J; } export interface GeneralSelectInputProps<T extends FieldValues, J extends string | number> extends FormInputProps<T> { classes?: { label?: string; selectValue?: string; selectItem?: string; desc?: string; formItem?: string; selectTrigger?: string; selectContent?: string; }; placeholder: string; items: SelectOption<J>[]; } export declare const GeneralSelectInput: { <T extends FieldValues, J extends string | number>({ form, name, desc, label, items, placeholder, classes, }: GeneralSelectInputProps<T, J>): ReactNode; displayName: string; };