rc-timeline

0.1.1 • Public • Published

rc-timeline

React Vertical Timeline Component.

[rc-calendar]

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import { Timeline } from 'rc-timeline';
const data = [
    {
        date: new Date(),
        color: '#00ff00',
        title: 'Splunk',
        body: 'Service Response time show'
    },
    {
        date: new Date(),
        color: '#ff0000',
        title: 'Splunk',
        body: 'Service Response time show'
    },
    {
        date: new Date(),
        color: '#ff0000',
        title: 'Splunk',
        body: 'Service Response time show'
    },
    {
        date: new Date(),
        color: '#ff0000',
        title: 'Splunk',
        body: 'Service Response time show'
    },
    {
        date: new Date(),
        color: '#ff0000',
        title: 'Splunk',
        body: 'Service Response time show'
    }
];
ReactDOM.render(<Timeline data={data} />, rootEl);

Package Sidebar

Install

npm i rc-timeline

Weekly Downloads

61

Version

0.1.1

License

MIT

Last publish

Collaborators

  • xupea-real