Created
January 11, 2017 17:36
-
-
Save xcoderzach/5300ec48dafefc5f8bf251ab886f4a24 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 SliderNumber = styled.div` | |
position: absolute; | |
top: 0; | |
text-align: center; | |
` | |
const sliderTheme = ({ SliderHandle }) => { | |
return { | |
SliderHandle: (props) => { | |
<SliderHandle {...props}> | |
<SliderNumber>{props.value}</SliderNumber> | |
</SliderHandle> | |
} | |
} | |
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