the-step
Steps for the-components
Installation
$ npm install the-step --save
Usage
'use strict' Component { superprops thisstate = step: 0 } { return <div> <TheStepStyle/> <TheSpinStyle/> <TheButtonStyle/> <TheStepBar step=thisstatestep onStep= this nodes= 'The first step' 'The second step' 'The third step' /> <TheStep step=thisstatestep onStep= this isSubmit=thisstatestep === 2 submitText='Say Yo' onSubmit= > <TheStepContent> <h1>This is content01</h1> <div style=height: 300>This is content</div> </TheStepContent> <TheStepContent> <h1>This is content02</h1> </TheStepContent> <TheStepContent> <h1>This is content03</h1> <div style=height: 240>This is content</div> </TheStepContent> </TheStep> </div> }
Components
TheStep
Steps for the-component
Props
Name | Type | Description | Default |
---|---|---|---|
backText |
string | 'Back' |
|
nextText |
string | 'Next' |
|
onStep |
func | null |
|
spinning |
bool | false |
|
step |
number | 0 |
|
submitText |
string | `` |
TheStepBar
Props
Name | Type | Description | Default |
---|---|---|---|
nodes |
array | [] |
|
onStep |
func | null |
|
step |
number | 0 |
TheStepStyle
Style for TheStep
Props
Name | Type | Description | Default |
---|---|---|---|
options |
object | Style options | {} |
License
This software is released under the MIT License.