simple-vertical-timeline

0.1.1 • Public • Published

simple-vertical-timeline

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save simple-vertical-timeline

Usage

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 />
  }
}

API

props

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............."
      }
    ]

License

MIT © amiranga

Readme

Keywords

none

Package Sidebar

Install

npm i simple-vertical-timeline

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

246 kB

Total Files

9

Last publish

Collaborators

  • amiranga