multi-select-input
Version:
multiple select input
21 lines (18 loc) • 577 B
TypeScript
import React from 'react';
type SelectOption = {
value: string;
label: string;
img?: string;
subTitle?: string;
};
type Props = {
options: SelectOption[];
value: SelectOption[];
setValue: React.Dispatch<React.SetStateAction<SelectOption[]>>;
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
className?: string;
loading?: boolean;
errorMessage?: string;
};
declare function MultiSelectInput({ options, errorMessage, loading, onChange, value, setValue, className }: Props): React.JSX.Element;
export { MultiSelectInput };