@reactway/dropdown
v5.0.0-beta.2
Published
A flexible React dropdown component.
Downloads
2
Readme
@reactway/dropdown
Docs | API
A flexible React dropdown component. Created with hooks :tada:.
Get started
$ npm install @reactway/dropdown
Features
- Toggles dropdown when clicked on
DropdownHeader
component - Closes dropdown when clicked outside of
DropdownHandler
component* - Closes dropdown when clicked on
DropdownSection
component - Closes dropdown when clicked Escape button on keyboard
- Extendable base components
- Supports server side rendering
* This will not work when click event has stopped propagation (event.stopPropagation()
) and therefore window.addEventListener("click", ...)
will not receive event.
License
Released under the MIT license.