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

events-timeline

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

events-timeline

Component for displaying events on a timeline

latest
Source
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

Events Timelime

This is a React component for displaying events on a timeline. Events can have a title or just be a point in "time".

Well, There is not an actual time, the events are simply scattered across a line...

How to use

Install

npm install events-timeline

Use in a view/component
    import EventsTimeline from 'events-timeline';

    import 'events-timeline/style.css';

    ...
    <EventsTimeline
        events={[{ title: 'First' }, {}, { title: 'Third' }]}
        onClick={val => console.log(val)}
        color="blue"
        emptyColor="yellow"
        currentIndex={2}
    />

Don't forget to add style.css!

Component's Properties
PropertyTypeDefaultNotes
colorstring'#5151ff'The color for 'filled' line & events
currentIndexnumber0The last point that will be 'filled' from the begining
emptyColorstring'#ffffff'The color for 'empty' line & events
eventsArray (Required)The events to display. An event can be an empty object or an object with 'title' property
onClickfunctionThe callback when click on event

License

MIT

Keywords

react

FAQs

Package last updated on 16 Sep 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