Skip to content

Instantly share code, notes, and snippets.

@agutoli
Created August 4, 2017 23:13
Show Gist options
  • Save agutoli/07047999b93a7e7da920913160f63937 to your computer and use it in GitHub Desktop.
Save agutoli/07047999b93a7e7da920913160f63937 to your computer and use it in GitHub Desktop.
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