
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
react-events-timeline
Advanced tools
The package that will help you display your content as a vertical timeline
You need to install package:
npm install react-events-timeline
You can use yarn:
yarn add react-events-timeline
You should import the component and css file:
import EventsTimeline from 'react-events-timeline';
import 'react-events-timeline/dist/main.css';
Then use the component in your application. For example:
<EventsTimeline title='HISTORY' icon={icon} color='blue' data={data} />
Parameter | Required | Type | Description | Default |
---|---|---|---|---|
color | optional | string | The component supports 3 color versions blue , green and orange | color: '#333' |
icon | optional | jsx | You can present the icon in any form as a JSX. For example, using an icon font such as font-awesome: <i className='fa fa-briefcase'/> | By default the icon will not be displayed with the title |
title | optional | string | Sets the name of the timeline next to the icon | By default the title will not be displayed |
data | required | array | See the description of Data item parameters |
Data is an array containing objects. For example:
const data = [
{
date: 2019,
title: 'Senior Developer',
label: 'GitHub',
location: 'Palo Alto, California (USA)',
content: (<div>
Description
</div>),
},
...OtherObjects
]
Parameter | Required | Type | Description |
---|---|---|---|
date | required | string | Date for item output. It can be YYYY ,MM.YY ,DD.MM or any other configuration. |
content | required | jsx | Your content for item |
title | optional | string | The title of the item |
label | optional | string | Label is the text that will be highlighted in color |
location | optional | string | Location designation |
import EventsTimeline from 'react-events-timeline';
import 'react-events-timeline/dist/main.css';
const data = [
{
date: 2019,
title: 'Senior Developer',
label: 'GitHub',
location: 'Palo Alto, California (USA)',
content: (<div>Description</div>),
}];
const icon = <i className='fa fa-briefcase'/>;
const App = () => (
<div className="app">
...
<EventsTimeline title='WORK HISTORY' icon={icon} color='blue' data={data} />
</div>
);
export default App;
FAQs
The package that will help you display your content as a vertical timeline
The npm package react-events-timeline receives a total of 1 weekly downloads. As such, react-events-timeline popularity was classified as not popular.
We found that react-events-timeline demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.