New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-timespan

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-timespan

Timeline component with gallery view and scrolling time plots.

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
3
-40%
Maintainers
1
Weekly downloads
 
Created
Source

React Timespan

A neat timeline component that displays a gallery of activities with a pannable plot.

Demonstration

How to use

API

The display precision is based on year, which is a large unit. Sorting precision is down to the millisecond.

import Timeline from 'react-timespan';

const activities = [
  {
    name: 'Cole Turner',
    start: '1991-02-24',
    url: 'http://cole.codes/',
    body: 'As a baby I was born because something about birds and bees.',
    image: 'http://...'
  },
  {
    name: 'The Year I Wrote This',
    start: '2017-01-01',
    end: '2017-12-31',
    url: 'http://cole.codes/',
    body: 'Truly I made this for my portfolio and decided to sh are.',
    image: 'http://...'
  }
];


<Timeline activities={activities} />

A SASS stylesheet is included separately...

Make it better

I decided to share this because I am fond of the end result and hope it will inspire a pull request to make it better.

Pull requests are warmly welcomed.

Contributors

Cole Turner

FAQs

Package last updated on 15 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts