Skip to content

lparkos/drop-down-react-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Reusable Dropdown

A simple reusable dropdown component

Dependencies

  • Babel/ES6
  • React
  • node
  • npm/yarn

Usage

  • Use this component by passing in props.
<Dropdown
  primary="This is your Title"
  listitem={this.state. <Your Object>}
/>

  • The 'listitem' prop takes in an object array, and will display an 'li' per element in the array using the map function.

Example of Object

favoritelinks: [
      {
        id: 'petfinder.com',
      },
      {
        id: 'medium.com',
      },
      {
        id: 'github.com',
      },
    ]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published