@shiftytab/reactselectlist
v0.1.7
Published
A React component that renders a select list with a custom dropdown
Downloads
6
Maintainers
Readme
About this package
This package allows you to set up a dropdown selection list in React. Below, you will find all the options related to the component and how to install it in your project.
Installation
Follow these steps to install the package:
NPM
npm i @shiftytab/reactselectlist
YARN
yarn add @shiftytab/reactselectlist
Deployment
Once you have installed the package, simply import it into your project.
import SelectList from '@shiftytab/reactselectlist';
<SelectList
options={[
{
"value": "Test 1"
},
{
"value": "Test 2"
},
{
"value": "Test 3"
}
]}
onChange={e => console.log(e)}
label="State"
placeholder='Select a value'
/>