A flexible React dropdown component.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vscode
__tests__
docs
examples/simple-example
src
tools/travis-release
.gitattributes
.gitignore
.travis.yml
LICENSE
README.md
package-lock.json
package.json
rollup.config.js
tsconfig.jest.json
tsconfig.json
tslint.json

README.md

NPM version Build Status Coverage Status dependencies Status devDependencies Status devDependencies Status

simplr-dropdown

Docs | API

A flexible React dropdown component.

Get started

$ npm install simplr-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 propogation (event.stopPropagation()) and therefore window.addEventListener("click", ...) will not receive event.

License

Released under the MIT license.