simplr-dropdown
TypeScript icon, indicating that this package has built-in type declarations

4.0.2 • Public • Published

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.

/simplr-dropdown/

    Package Sidebar

    Install

    npm i simplr-dropdown

    Weekly Downloads

    88

    Version

    4.0.2

    License

    MIT

    Unpacked Size

    57.4 kB

    Total Files

    27

    Last publish

    Collaborators

    • quatrodev