Skip to content

Instantly share code, notes, and snippets.

@xcoderzach
Last active January 11, 2017 17:51
Show Gist options
  • Save xcoderzach/9860391500bc44cfdf422db06e79cd16 to your computer and use it in GitHub Desktop.
Save xcoderzach/9860391500bc44cfdf422db06e79cd16 to your computer and use it in GitHub Desktop.
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