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 📍
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 📍
direction
Feedback
Para reportar algum problema, solicitar novos ícones, solicitar novos casos de uso de componentes, tirar dúvidas, enviar sugestões ou reportar bugs, entre em contato pelo nosso canal no Slack #tangram-design-system.