@weave-design/multi-downshift
v1.0.0
Published
Multi-selection support for Downshift
Downloads
1,109
Readme
Multi-Downshift
Multi-selection support for Downshift
Getting started
yarn add @weave-design/multi-downshift
Import the component
import MultiDownshift from '@weave-design/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.