2.0.3 • Published 7 years ago

fyndiq-component-timeline v2.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

fyndiq-component-timeline npm

Preview

A Timeline Component for Fyndiq

Installation

The component can be installed through NPM:

npm i -S fyndiq-component-timeline

Usage

import React from 'react'
import { Timeline, Event } from 'fyndiq-component-timeline'
import { Truck, Shop } from 'fyndiq-icons'

// Normal usage
<Timeline>
  <Event icon={<Truck />}>
    This package was shipped
  </Event>
  <Event icon={<Bag />}>
    This product was bought <strong>yesterday</strong>
  </Event>
</Timeline>

API

The component Timeline has the following customizable props:

NameTypeDescriptionDefault value
childrenNodeEvents componentsnull
 type String Change the color theme of the timeline. One of white or black white

The component Event has the following customizable props:

NameTypeDescriptionDefault value
childrenNodeText of the eventnull
 iconElement Icon from fyndiq-icon null
2.0.3

7 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago