react-selectrix icon indicating copy to clipboard operation
react-selectrix copied to clipboard

Style prop support

Open stratos-vetsos opened this issue 7 years ago • 2 comments

Component style should be easily customizable through an object prop

stratos-vetsos avatar Jul 22 '18 10:07 stratos-vetsos

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 ) } />

kayceecodes avatar Oct 12 '18 02:10 kayceecodes

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

stratos-vetsos avatar Oct 12 '18 08:10 stratos-vetsos