Skip to content

c9a2334/helloflow-dropoup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dropout react component

Usage

    <Dropout steps={this.state.steps}/>

Where the steps is an array of objects:

[
    {title: 'Contact info', type: 'normal', percentage: 95},
    {title: 'NemID', type: 'service', percentage: 80},
    {title: 'Personal address', type: 'qwe', percentage: 45},
    {title: 'Documents', type: 'asd', percentage: 60},
    {title: 'Financial info', type: 'normal', percentage: 60},
]

Object properties:

  • title: text displayed in a div element
  • percentage: height of a div element responsively to parent height
  • type: affect on background-color of a div (normal: #d7ebff, service: #d4eeea, everything else: #ffeac2)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published