Steps
Importβ
import { Steps } from '@resultadosdigitais/tangram-components'
Propertiesβ
children
πβ
activeStep
β
Type | number |
---|---|
Default | 0 |
Descriptionβ
Set the active step using index number. Set to -1 to clear all steps.
connector
β
direction
β
onChange
β
Type | func |
---|---|
Param | activeStep number - The new active step |
Descriptionβ
Callback fired when the step is changed.
onCompleted
β
Type | func |
---|---|
Param | activeStep number - The active step. |
Descriptionβ
Callback fired when the steps is completed.
<Step />β
Importβ
import { Step } from '@resultadosdigitais/tangram-components'
Propertiesβ
id
πβ
active
β
completed
β
children
πβ
Concerns | π Required |
---|---|
Type | string | node |
Descriptionβ
Set sa string containing a title for the label.
direction
β
<StepConnector />β
Importβ
import { StepConnector } from '@resultadosdigitais/tangram-components'
Propertiesβ
stepId
β
direction
β
<StepsContent />β
Importβ
import { StepsContent } from '@resultadosdigitais/tangram-components'
Propertiesβ
activeStep
β
Type | number |
---|---|
Default | 0 |
Descriptionβ
Sets the active step using index number. Must have the same number passed in <Steps />
.
children
πβ
Concerns | π Required |
---|---|
Type | element | array | node |
Descriptionβ
Sets three or more <Steps.Panel />
components.
<StepsPanel />β
Importβ
import { StepsPanel } from '@resultadosdigitais/tangram-components'
Propertiesβ
children
πβ
Concerns | π Required |
---|---|
Type | node |
Descriptionβ
Sets the content to be shown when the relative Step index is active.
<StepsProvider />β
Importβ
import { StepsProvider } from '@resultadosdigitais/tangram-components'
Propertiesβ
onCompleted
β
Type | func |
---|---|
Default | null |
Param | activeStep number - The active step. |
Descriptionβ
Callback fired when the steps is completed.
activeStep
β
Type | number |
---|---|
Default | 0 |
Descriptionβ
Set the active step using index number. Set to -1 to clear all steps.
children
πβ
<StepsTrigger />β
Importβ
import { StepsTrigger } from '@resultadosdigitais/tangram-components'
Propertiesβ
href
β
disabled
β
onClick
β
Type | func |
---|---|
Default | () => {} |
Param | event React.SyntheticEvent - The event source of the callback. |
Param | index number - The index of the step. |
Descriptionβ
Callback fired when is clicked.
active
β
children
πβ
Concerns | π Required |
---|---|
Type | string | node |
Descriptionβ
Sets a string containing a title for the label.