2.0.2 • Published 5 years ago

react-timelinev1 v2.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

React Timeline

Reusable react components to create a good looking and responsive timeline out the box!

Table of contents

Installation

npm

npm install react-timelinev1

Yarn

yarn add react-timelinev1

Usage

import React from 'react';
import { Timeline, TimelineItem } from 'react-timelinev1';
function App() {
  return (
    <div className='App'>
      <Timeline>
        <TimelineItem side='left' title='hello world' body='Some text' date='2020' />
        <TimelineItem side='left' title='hello world' body='Some text' date='2020' />
        <TimelineItem side='right' title='hello world' body='Some text' date='2020' />
        <TimelineItem side='right' title='hello world' body='Some text' date='2020' />
      </Timeline>
    </div>
  );
}

Screenshot

screenshot

Playground

https://codesandbox.io/s/kind-star-k2ix2

Available Props

Timeline

Optiontypedescriptionrequired
timelineBgstringSet a background color for the timelinefalse

TimelineItem

Optiontypedescriptionrequired
titlestringset the titletrue
sidestringleft or righttrue
datestringset a datetrue
bodystringmain text on timeline itemtrue
bgColorstringset a background color for the timeline itemfalse
bodyTextColorstringSet a color for the body textfalse
dateColorstringSet a color for datefalse
titleBgstringSet a background color for the titlefalse
titleColorstringSet a color for titlefalse
borderRadiusstringSet a border radius for the timeline itemfalse
2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago