1.0.0 • Published 2 years ago
my-dropdown-lib v1.0.0
my-dropdown-lib
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-lib
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
Device