2.5.3 • Published 5 years ago

react-timelines.js v2.5.3

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

React Timelines CircleCI

Demo

Install

yarn add react-timelines

Or

npm install react-timelines

Use

import Timeline from 'react-timelines'

const MyWidget = () => <Timeline {...props} />

export default MyWidget

Styling

Using Webpack

Using Webpack with CSS loader, add the following:

import 'react-timelines/lib/css/style.css';

Using Sass (SCSS)

Using Sass you can configure the timeline with variables:

$react-timelines-font-family: MaryAnn;
$react-timelines-sidebar-width: 320px;

@import '~/react-timelines/src/scss/style';

Without build tools

Create a CSS file with the contents of react-timelines/lib/css/style.css and include it in <head>

Development

yarn

Then:

yarn watch