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 |