Skip to content

Latest commit

 

History

History
83 lines (59 loc) · 1.99 KB

README.md

File metadata and controls

83 lines (59 loc) · 1.99 KB

react-responsive-timeline

License: MIT

Simple responsive timeline implemented in ReactJS

Demo

Live demo:

To run demo on your computer:

  • Clone this repository
  • yarn install
  • yarn run dev

Screenshot

pivot: vertical

direction: left

alt text

pivot: vertical

direction: center

tooltip: true

alt text

Usage

You can combine pivot and direction together

Simple timeline
import { Timeline } from 'react-responsive-timeline';

<Timeline
  pivot="vertical"
  direction="left"
  tooltip={true}
  textLimit="none"
  timelines={[
    {
      title: 'C.A. Alexander, A Pattern Language, New York,, 1977.',
      sub: '10 May 2020',
    },
    {
      title: 'E. Yourdon, L. Constantine, Structured Design, N.J.,, 1978.',
      sub: '12 May 2020',
    },
    {
      title: 'C.A. Alexander, The Timeless Way of Building, New York,, 1979.',
      sub: '05 July 2020',
    }
  ]} />
Props
Prop name Prop type Default value Description
timelines array Required data
pivot string vertical Describe vertical, horizontal
direction string left Describe left, center, right
tooltip boolean false show tooltip
textLimit string none set limit text. Or a css px string. Eg: "100px", "200px" ...

Author

License

MIT