Last active
January 11, 2017 17:51
-
-
Save xcoderzach/9860391500bc44cfdf422db06e79cd16 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 ComponentProvider from './component-provider' | |
const sliderTheme = ({ SliderBar, SliderHandle }) => { | |
return { | |
SliderBar: styled.div` | |
width: 100%; | |
height: 2px; | |
background-color: green; | |
`, | |
SliderHandle: styled(SliderHandle)` | |
width: 0; | |
height: 0; | |
border-left: 20px solid transparent; | |
border-right: 20px solid transparent; | |
border-top: 20px solid #f00; | |
` | |
} | |
export default (props) => { | |
<ComponentProvider theme={sliderTheme}> | |
<SimpleSlider startValue={10} stopValue={20} min={0} max={50} /> | |
<ComponentProvider> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment