1.0.5 • Published 4 years ago

ac-react-timeline v1.0.5

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

React Timeline

Timeline component to React library

NPM version npm download Dependencies DevDependencies

Screenshot

Usage

Install the package

npm i ac-react-timeline

Import

import ReactTimeline from 'ac-react-timeline'

Add to your page

<ReactTimeline list={list}/>

The list parameter must be a list with the following content:

list = [
    {
      "id": 1,
      "text": "Stage 1",
      "actual": false,
      "completed": true
    },
    {
      "id": 2,
      "text": "Stage 2",
      "actual": true,
      "completed": false
    },
    {
      "id": 3,
      "text": "Stage 3",
      "actual": false,
      "completed": false
    }
]

Parameters description

ParameterTypeDescription
IdnumberId element
TextstringLabel stage
ActualbooleanThe actual stage among all
CompletedbooleanStage completed

License

ReactTimeline is released under the MIT license.