@ied/event

## Install

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@ied/event
Minified + gzip package size for @ied/event in KB

Readme

Event

Install

 yarn add @ied/event

Requirement

If you use icon property add this to your index.html

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

Use

import Event from '@ied/event'

      <Event
        type="created"
        eventText={
          <p>
            <strong>Daffy Duck</strong> created the task Boom
          </p>
        }
        date="2019-11-13"
        locale="fr"
      />
      <Event
        type="updated"
        eventText={
          <p>
            <strong>E.T.</strong> updated the task Boom
          </p>
        }
        date="2019-09-23"
        locale="en"
      />
      <Event
        type="rejected"
        eventText={
          <p>
            <strong>Homer Simpson</strong> rejected a document
          </p>
        }
        date="2019-08-07"
        locale="da"
      />

Types

Props

type Props = {
  type: string,
  eventText: Node,
  date: Date | number | string,
  children?: Node,
  locale?: string,
}

List of event types

  • created
  • deleted
  • completed
  • uploaded
  • assigned
  • commented
  • updated
  • approved
  • rejected

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.