Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-beautiful-horizontal-timeline

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-beautiful-horizontal-timeline

Please check our DEMO: https://mytimeline-ad39c.firebaseapp.com/

  • 4.0.4
  • npm
  • Socket score

Version published
Weekly downloads
65
decreased by-31.58%
Maintainers
1
Weekly downloads
 
Created
Source

Please check our DEMO: https://mytimeline-ad39c.firebaseapp.com/

Example: in your App.js:

React Beautiful Horizontal Timeline Timeline

We offer Horizontal Timeline with your costumize.

  • We offer Horizontal Timeline with your costumize.
  • Layouts will work on any device, big or small.
  • Mobiles support swipe.

Size Limit CLI

Take A Look At Our DEMO

Install

    $ npm install react-beautiful-horizontal-timeline
    ```

## Example

1. Your App.js:

```jsx
import React, { useState } from 'react';
import './App.css';
import { Timeline } from "react-beautiful-horizontal-timeline";

function App() {

  const myList = [
    {
      date: "2018-03-22",
      name: "Event number 01",
      s: "Extreme ",
      t: "maor k"
    },
    {
      date: "2018-03-22",
      name: "Event number 02",
      s: "Extreme ",
      t: "s k"
    },
    {
      date: "2018-03-22",
      name: "Event number 03",
      s: "Extreme ",
      t: "Demo"
    },
    {
      name: "Event number 04",
      date: "2018-03-22",
      s: "example some",
      t: "Maor tt"
    },
    {
      date: "2018-03-22",
      name: "Event number 05",
      s: "Extreme ",
      t: "Maor tt"
    },
    {
      date: "2018-03-22",
      name: "Event number 06",
      s: "Extreme ",
      t: "Demo"
    },
    {
      date: "2018-03-22",
      name: "Event number 07",
      statusE: "In Progress",
      s: "Extreme ",
      t: "Maor tt"
    },
    {
      date: "2018-03-22",
      name: "Event number 08",
      s: "Extreme ",
      t: "Maor Tnt"
    },
    {
      date: "2018-03-22",
      name: "Event number 09",
      s: "Extreme ",
      t: "Demo"
    },
    {
      date: "2018-03-22",
      name: "Event number 10",
      s: "Extreme ",
      t: "Maor tt"
    },
    {
      name: "Extreme  at Maor Tt10",
      data: "2018-03-22",
      s: "Extreme ",
      t: "Maor Tnt"
    }
  ];

  const [labelWidth, setlabelWidth] = useState(140);
  const [amountMove, setamountMove] = useState(350);
  const [lineColor, setlineColor] = useState("#61dafb");
  const [darkMode, setdarkMode] = useState(false);
  const [eventTextAlignCenter, seteventTextAlignCenter] = useState(true);
  const [showSlider, setshowSlider] = useState(true);
  const [arrowsSize, setarrowsSize] = useState(false);

  return (
    <div className="App">
      <Timeline
        myList={myList}
        labelWidth={labelWidth}
        amountMove={amountMove}
        lineColor={lineColor}
        darkMode={darkMode}
        eventTextAlignCenter={eventTextAlignCenter}
        showSlider={showSlider}
        arrowsSize={arrowsSize}
      />
    </div>
  );
}

export default App

Have Fun!

Keywords

FAQs

Package last updated on 05 Jan 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc