1.0.0-alpha.30 • Published 5 years ago

@talixo/how-it-works v1.0.0-alpha.30

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

Talixo - How It Works

UI Component which represents "how it works" element, to show step by step what will happen.

How to install

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

Requirements

Your package should additionally have some extra dependencies:

  • @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/how-it-works, but you have to install them manually, to avoid having different versions of these in your application.

Supported props

Property nameTypeDefaultDescription
classNamestringn/aAdditional class name passed to wrapper.
stepsStep[][]An array of steps containing the explanation of how it works.

Property shapes

Step

Property nameTypeDefaultDescription
descriptionstringn/aDescription of a step.
imageElementn/aImage element which will be displayed above step.
titlestringn/aTitle of a step.

Changelog

  • 0.1.0 - initial version