1.1.2 • Published 2 years ago

react-dropdown-material v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-dropdown-material

NPM JavaScript Style Guide react-dropdown-material Banner demo

Install

npm i react-dropdown-material

or

yarn add react-dropdown-material

Usage

JS:

import React from 'react';

import { DropDown } from 'react-dropdown-material';
import 'react-dropdown-material/dist/index.css';

const App = () => {
  return (
    <DropDown
      className='DropDown'
      placeholder='Select OS'
      title='OS List'
      items={['Windows', 'Mac OS', 'Linux']}
      onItemSelect={(index, item) => console.log(`"${item}" selected`)}
      selectFirstItem={false}
      darkMode={false}
    />
  )
}

export default App

CSS:

.DropDown {
  button {
    //DropDown button
  }

  ul li {
    //DropDown items
  }
}

License

MIT © boof-tech

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago