Created
August 4, 2017 23:13
-
-
Save agutoli/07047999b93a7e7da920913160f63937 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import Select from 'react-styled-select' | |
class MyComp extends React.Component { | |
render() { | |
const options = [ | |
{ label: "One", value: 1}, | |
{ label: "Two", value: 2}, | |
] | |
return ( | |
<Select | |
options={options} | |
onOpen={myOpenFunc} | |
onChange={myChangeFunc} | |
className="my-root-class" | |
classes={{ | |
selectValue: 'my-custom-class-value', | |
selectArrow: 'my-custom-class-arrow' | |
}} | |
/> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment