Skip to content

JSLancerTeam/react-responsive-timeline

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published