Building Accessible Dropdowns with Downshift React Hooks
summary
Builds a custom Select, a Combobox with async server filtering, and a Multiple Selection tag list using useSelect, useCombobox, useMultipleSelection from Downshift and styled with Chakra UI. Demonstrates keyboard nav, character search, tag removal and focus behavior, an imperative reset API, a state reducer that changes arrow-key behavior to match Windows, and aria-live announcements for open counts and selection changes. All examples run live in a code editor and the components behave as shown.
AI-written summary · about
chapters (19)
- 0:00Introduction and speaker background
- 1:10Why Downshift transitioned to Hooks
- 2:57Talk overview and plan
- 3:46Building a custom Select component
- 9:02Handling state and accessibility
- 13:04Building a custom Combobox
- 18:14Combobox UI and ARIA compliance
- 19:27Adding multiple selection
- 24:56Controlling state in Combobox
- 25:20Controlled props in Downshift
- 30:21Customizing behavior with state reducer
- 34:48Imperative API and reset function
- 37:46Action props and escape hatch
- 38:10Recap of Downshift benefits
- 39:11Q&A: Screen reader experience
- 41:04Q&A: Problems solved by Downshift
- 42:57Q&A: Maintaining Downshift
- 46:16Q&A: Tour of Downshift docs
- 48:47Closing and thanks
