Made with create-react-library
npm install --save simple-vertical-timeline
import React, { Component } from 'react'
import Timeline from 'simple-vertical-timeline'
import 'simple-vertical-timeline/dist/index.css'
class Example extends Component {
render() {
return <Timeline />
}
}
name | type | default | description | example |
---|---|---|---|---|
values |
[ { from: String, to: String, title: String, description: String }, { from: String, to: String, title: String, description: String } ... ] |
data to render in timeline. Should be a list of data objects |
[ { from: "Oct 2010", to: "Oct 2011", title: "Company A", description: "Worked as a X in Company A............" }, { from: "Nov 2011", to: "Nov 2012", title: "Company B", description: "Worked as a Y in Company B............." } ] |
MIT © amiranga