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.