Style prop support
Component style should be easily customizable through an object prop
Hey Stratos I'm getting "Invalid prop height of type string supplied to App, expected number. " in my console. Selectrix doen't seem to take my own hard coded height prop. I'm using the basic example. Just need a very simple version of it.
<Selectrix
multiple={true}
materialize={true}
**height={190}
options={[
{
key: "javascript",
label: "Javascript"
},
{
key: "go",
label: "Go"
},
{
key: "ruby",
label: "Ruby On Rails"
},
{
key: "php",
label: "PHP"
}
]}
onChange={ value => console.log( value ) }
/>
Hi kcee403, There was an issue with backwards compatibility with React versions before 16.4. Thanks for spotting out.
I just released a version fixing this (1.0.16), so run npm i --save-dev react-selectrix@latest and you should be fine.
Best Regards