1.2.0 • Published 2 years ago

simple-effing-timeline v1.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Features

Getting started

# via yarn
yarn add simple-effing-timeline

# via npm
npm install --save simple-effing-timeline

Usage

import { Timeline } from "simple-effing-timeline";

ReactDOM.render(
  <Timeline
    configuraton={{
      categories: {
        event: {
          title: "Events",
          background: "#FF7300",
          color: "#FFFFFF",
        },
        announcement: {
          title: "Announcements",
          background: "#F15229",
          color: "#FFFFFF",
        },
        workshop: {
          title: "Workshops",
          background: "#FEBD32",
          color: "#000000",
        },
      },
      legends: {
        display: true,
      },
    }}
    events={[
      {
        title: "React.js Meetup",
        description: "United Kingdom",
        category: "event",
        start: "2022-08-01",
        end: "2022-08-31",
      },
      {
        title: "Timeline 1.3.0 Update",
        category: "announcement",
        start: "2022-11-03",
        end: "2022-11-04",
      },
      {
        title: "React.js Workshop",
        description: "Limited To 20 Members",
        category: "workshop",
        start: "2023-02-03",
        end: "2023-02-28",
      },
    ]}
  />,
  document.getElementById("root")
);