0.1.7 • Published 1 year ago

react_select_ocp14 v0.1.7

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

react_select_ocp14

This plugin was designed as part of the last project of the Openclassrooms training, front-end developer.

Install

npm install react_select_ocp14

Use plugin

const  array = [
{
value :  "fromage",
title :  "Fromage"
},

{
value :  "chocolat",
title :  "Chocolat"
},
]
const [state, setState] = useState(array[0].value)
<Select  options={array}  label="course"  title="Liste de courses"  stateValue={state}  onChangeValue={setState}/>

Props

NameTypeExample
labelString
titleString
componentStyleObjectmodalStyle={{display:"flex"}}
labelStyleObjectmodalStyle={{display:"flex"}}
selectStyleObjectmodalStyle={{display:"flex"}}
optionStyleObjectmodalStyle={{display:"flex"}}
onChangeValueuseState
stateValueuseState