@salmanul/react-simple-timeline

1.9.1 • Public • Published

React Simple Timeline

A modern and responsive React timeline component using basic CSS. Checkout the examples here!

Contents

Getting started

# via yarn
yarn add @salmanul/react-simple-timeline

# via npm
npm install --save @salmanul/react-simple-timeline

Usage

At the very minimum:

import Timeline from '@salmanul/react-simple-timeline';
import '@salmanul/react-simple-timeline/styles/index.css';

const data =  {
      status: "initialized",
      nodes: [
        {
          title: "Initialized",
          dataIndex: "initialized"
        },
        {
          title: "Acknowledged",
          dataIndex: "acknowledged"
        },
        {
          title: "Processed",
          dataIndex: "processed"
        }
      ]
    }

ReactDOM.render(
  <div>
    <Timeline
      mode='horizontal'
      data={data}
    />
  </div>,
  document.getElementById('root')
)

Package Sidebar

Install

npm i @salmanul/react-simple-timeline

Weekly Downloads

1

Version

1.9.1

License

MIT

Unpacked Size

269 kB

Total Files

23

Last publish

Collaborators

  • salmanul33