Skip to content

perezpz/react-dropdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-dropdown

Simple Dropdown component for React

NPM version build status Test coverage node version

Install

npm install @bronzetrees/react-dropdown --save

Usage

import Dropdown from '@bronzetrees/react-dropdown';

ReactDOM.render(
  <Dropdown
    menu={
      <Dropdown.Menu>
        <Dropdown.Item>item1</Dropdown.Item>
        <Dropdown.Item>item2</Dropdown.Item>
      </Dropdown.Menu>
    }
    menuAlign="bottom"
  >
    <span>dropdown link</span>
  </Dropdown>,
  mountNode
);

API

props

name type default description
menuAlign String 'bottom-end' placement of pop menu
trigger String 'hover' the trigger mode which executes the dropdown action.

License

@bronzetrees/react-dropdown is released under the MIT license.

About

A simple dropdown component for React.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published