Skip to main content
Version: 5.3

Changelog

Features

Breaking changes

Strict types for single and multiple items

interface DropDownPickerSingleProps {
multiple?: false;
onChangeValue?: (value: ValueType | null) => void;
onSelectItem?: (item: ItemType) => void;
setValue: Dispatch<SetStateAction<ValueType | null>>;
value: ValueType | null;
}

interface DropDownPickerMultipleProps {
multiple: true;
onChangeValue?: (value: ValueType[] | null) => void;
onSelectItem?: (items: ItemType[]) => void;
setValue: Dispatch<SetStateAction<ValueType[] | null>>;
value: ValueType[] | null;
}