1.0.8 • Published 6 months ago

react-timelines.ts v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

React Timelines

Original repo: react-timelines (JSainsburyPLC).

Demo

Install

npm install react-timelines-updated

Feel free to replace npm with whatever package manager you are using.

Use

import Timeline from 'react-timelines-updated'

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

export default MyWidget

Styling

Using Webpack

Using Webpack with CSS loader, add the following:

import 'react-timelines-updated/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-updated/src/scss/style';

Without build tools

Create a CSS file with the contents of react-timelines-updated/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.

1.0.2

8 months ago

1.0.8

6 months ago

1.0.7

6 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago