react-chart-timelines

2.7.8 • Public • Published

React Timelines

Demo

Install

# with npm
npm install react-chart-timelines

# or with Yarn
yarn add react-chart-timelines

Use

import Timeline from 'react-chart-timelines'

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

export default MyWidget

Styling

Using Webpack

Using Webpack with CSS loader, add the following:

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

Using Sass (SCSS)

Using Sass you can configure the timeline with variables:

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

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

Without build tools

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

Development

npm install
npm run watch

This library is developed using VSCode - opening it in VSCode will recommend extensions, and enable linting and auto-formatting of code.

Package Sidebar

Install

npm i react-chart-timelines

Weekly Downloads

5

Version

2.7.8

License

MIT

Unpacked Size

267 kB

Total Files

145

Last publish

Collaborators

  • yhnode