1.0.7 • Published 6 years ago
increaser-timeline v1.0.7
increaser-timeline
Demo
Install
npm install --save increaser-timeline
Usage
import React from 'react'
import Timeline from 'increaser-timeline'
const Container = ({ children }) => (
<div style={{ height: '100vh' width: '100%' }}>
{children}
</div>
)
// optional
const theme = {
textColor: 'white',
backgroundColor: 'rgba(255, 255, 255, 0.14)'
}
class Example extends React.Component {
constructor(props) {
super(props)
this.state = { sets: [] }
}
render() {
const { sets } = this.state
return (
<Timeline
wrapper={Container}
sets={sets}
/>
)
}
}
Story on Medium
License
MIT © RodionChachura