@reactway/dropdown
TypeScript icon, indicating that this package has built-in type declarations

5.0.0-beta.2 • Public • Published

NPM version Build Status Code coverage Dependencies Dev dependencies

@reactway/dropdown

Docs | API

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.

Dependencies (3)

Dev Dependencies (15)

Package Sidebar

Install

npm i @reactway/dropdown

Weekly Downloads

1

Version

5.0.0-beta.2

License

MIT

Unpacked Size

95.3 kB

Total Files

38

Last publish

Collaborators

  • quatrodev
  • martynas-zilinskas
  • reactway-dev