@hig/multi-downshift
v2.2.0
Published
Multi-selection support for Downshift
Downloads
44
Readme
Multi-Downshift
Multi-selection support for Downshift
Getting started
yarn add @hig/multi-downshift
Import the component
import MultiDownshift from '@hig/multi-downshift';
Basic usage
<MultiDownshift
onChange={handleChange}
itemToString={itemToString}
>
{({
getButtonProps,
getRemoveButtonProps,
isOpen,
selectedItems,
getItemProps,
highlightedIndex,
}) => (
<MyComponent />
)
}
</MultiDownshift>
Credits
Based on the work by Kent C. Dodds.