1.0.0-alpha.30 • Published 5 years ago

@talixo/timeline v1.0.0-alpha.30

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Talixo Timeline

UI Component which represents Timeline

How to install

Package is available as @talixo/timeline in NPM registry, so you can use it in your project using npm install @talixo/timeline --save or yarn add @talixo/timeline.

Requirements

Your package should additionally have some extra dependencies:

  • @talixo/icon: ^1.0.0-alpha.30
  • @talixo/shared: ^1.0.0-alpha.30
  • prop-types: ^15.6.1
  • react: ^16.2.0
  • react-dom: ^16.2.0

These packages are required by @talixo/timeline, but you have to install them manually, to avoid having different versions of these in your application.

Supported props

Timeline

It allows any props which are allowed for div. Additionally, it handles some differently:

Property nameTypeDefaultDescription
classNamestringn/aadditional class name passed to wrapper
childrennoden/achidren inside Timeline

TimelineLine

It allows any props which are allowed for div. Additionally, it handles some differently:

Property nameTypeDefaultDescription
classNamestringn/aadditional class name passed to wrapper
shortbooln/ashort version of timeline line
specialbooln/aline has special styles

TimelinePoint

It allows any props which are allowed for div. Additionally, it handles some differently:

Property nameTypeDefaultDescription
classNamestringn/aadditional class name passed to wrapper
childrennoden/achidren inside Timeline
specialbooln/aline has special styles

TimelineElement

It allows any props which are allowed for div. Additionally, it handles some differently:

Property nameTypeDefaultDescription
classNamestringn/aadditional class name passed to wrapper
childrennoden/achidren inside Timeline
timestringn/atime to render in component

Changelog

  • 0.1.0 - initial version