@adv13/my-dropdown-comp2

2.0.0 • Public • Published

my-dropdown-comp

A simple React library created using create-react-app.

It allows you to create a custom selectable component with 3 props

Installation

Run the following command: npm install my-dropdown-comp

Controllable Props

Prop name Description
options array The list of options
defaultOption string The message seen in the header by default
onChange function Gets the value of the clicked option in params

Demo

Code

example1

Device

example2 example3

Package Sidebar

Install

npm i @adv13/my-dropdown-comp2

Weekly Downloads

2

Version

2.0.0

License

ISC

Unpacked Size

5.66 kB

Total Files

5

Last publish

Collaborators

  • adv13