Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.5 KB

README.md

File metadata and controls

28 lines (22 loc) · 1.5 KB

NPM version Build Status Code coverage Dependencies Dev dependencies

@reactway/dropdown

A flexible React dropdown component. Created with hooks 🎉.

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.