UNPKG

@fluster.io/dev

Version:

30 lines (29 loc) 961 B
import { ReactNode } from 'react'; import { FieldValues } from 'react-hook-form'; import { FormInputProps } from '../../types'; export interface GeneralComboboxProps<T extends FieldValues> extends Omit<FormInputProps<T>, "desc"> { ids?: { button?: string; popover?: string; commandItem?: string; popoverContainer?: string; commandInput?: string; label?: string; }; classes?: { button?: string; popover?: string; commandItem?: string; popoverContainer?: string; commandInput?: string; label?: string; }; placeholder: string; inputPlaceholder?: string; noneFoundText?: string; items: { label: string; value: string; }[]; } export declare const GeneralCombobox: <T extends FieldValues>({ name, label, form, items, placeholder, inputPlaceholder, noneFoundText, classes, ids, }: GeneralComboboxProps<T>) => ReactNode;