0.1.5 • Published 4 years ago

react-responsive-timeline v0.1.5

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

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 nameProp typeDefault valueDescription
timelinesarrayRequireddata
pivotstringverticalDescribe vertical, horizontal
directionstringleftDescribe left, center, right
tooltipbooleanfalseshow tooltip
textLimitstringnoneset limit text. Or a css px string. Eg: "100px", "200px" ...

Author

  • Tony Nguyen - nhattruong1811@gmail.com

License

MIT

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago