React Timeline component
Live Demo
For examples of timeline, go to https://wizcheng.github.io/react-timelinejsGetting Started
Install
yarn add -D react-timelinejs
Usage
import Timeline from 'react-timelinejs';
...
const data = [
{
start: new Date('2018-07-12T13:14:15'),
end: new Date('2018-07-12T15:14:15'),
label: 'My First Event 1'
},
{
start: new Date('2018-07-16:14:15'),
end: new Date('2018-07-12T17:14:15'),
label: 'My First Event 2'
},
{
start: new Date('2018-07-12T12:14:15'),
end: new Date('2018-07-12T19:14:15'),
label: 'My Second Event'
}
];
...
<Timeline data={data}/>