downshift-js / downshift

🏎 A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete, combobox or select dropdown components.
http://downshift-js.com/
MIT License
12.05k stars 933 forks source link

[Long-Term Plan] Moving Forward with the React Hooks API #1233

Open silviuaavram opened 3 years ago

silviuaavram commented 3 years ago

Problem description:

Medium Term Plan

This should be our 6-12 month development plan for downshift-js. I think its API is a great success in providing accessibility and functionality to React Components. We should continue to improve the library in terms of bugfixes, types and features:

Comments

It's not definitive so I am looking for feedback in terms of prioritisation and features.

tonypee commented 3 years ago

using the * as xxx syntax makes it harder for autocompletion of imports no? would import { useSelect } be possible?

silviuaavram commented 3 years ago

It could, sure @tonypee . I wasn't aware of that, it makes sense. Thanks for the feedback!

silviuaavram commented 1 year ago

So far, we have migrated to ARIA 1.2.

drewbrend commented 1 year ago

Create useMultipleSelect and useMultipleCombobox for better usage experience. Should be based on useSelect, useCombobox and useTaglist.

+1 for this. In our design system we use downshift's hooks and found we needed to combine the multi selection hook with the relevant select/combobox hook to improve usability for our consumers. We expose the equivalent of:

Is this going to make it into v8? with some other the other v8 changes we might be able to greatly simplify our implementation. 🤞

silviuaavram commented 1 year ago

V8 has enough changes as it is, it's going to be released with the current ones and we can create another major release with the new hooks. Thanks for the feedback!