# react-responsive-timeline

> An ReactJS implementation for responsive timeline by JSLancer team

Latest version **0.1.5** (published 2020-03-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-responsive-timeline
pnpm add react-responsive-timeline
yarn add react-responsive-timeline
bun add react-responsive-timeline
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2020-03-26 |
| First published | 2020-03-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=8 |
| Dependencies | 0 |
| Unpacked size | 62 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tony Nguyen |
| Maintainers | nhattruongniit |

## Links

- npm: https://www.npmjs.com/package/react-responsive-timeline
- Homepage: https://github.com/JSLancerTeam/react-responsive-timeline
- npm.io page: https://npm.io/package/react-responsive-timeline

## Recent versions

- 0.1.5 (latest) — 2020-03-26
- 0.1.4 — 2020-03-25
- 0.1.3 — 2020-03-25
- 0.1.2 — 2020-03-24
- 0.1.1 — 2020-03-24
- 0.1.0 — 2020-03-24

## README

# react-responsive-timeline
<!-- [![dependency status][deps-svg]][deps-url]
[![dev dependency status][dev-deps-svg]][dev-deps-url] -->
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)


Simple responsive timeline implemented in ReactJS

### Demo

Live demo:
- codesanbox:  https://codesandbox.io/s/react-responsive-timeline-q8vsn
- stackblitz: https://stackblitz.com/edit/react-responsive-timeline


To run demo on your computer:
  - Clone this repository
  - `yarn install`
  - `yarn run dev`

### Screenshot

pivot: vertical

direction: left

![alt text](https://raw.githubusercontent.com/JSLancerTeam/react-responsive-timeline/master/images/screen-shot.png)

pivot: vertical

direction: center

tooltip: true

![alt text](https://raw.githubusercontent.com/JSLancerTeam/react-responsive-timeline/master/images/tooltip.png)

### 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: <b>"100px"</b>, <b>"200px"</b> ... |

### Author
- Tony Nguyen - nhattruong1811@gmail.com

### License
MIT

[package-url]: https://npmjs.org/package/react-responsive-timeline

---
_Source: https://npm.io/package/react-responsive-timeline · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
