react-timeline-18

1.0.1 • Public • Published

React Timelines

This is an updated branch I am working on building off of the archived react-timelines library created by jsainsburyplc You can find the original repo here: https://github.com/JSainsburyPLC/react-timelines

Install

# with npm
npm install react-timelines

# or with Yarn
yarn add 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

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-timeline-18

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

283 kB

Total Files

145

Last publish

Collaborators

  • zevans