Workflow Component
Workflow Component

Reference for the workflow MDX component, including usage notes and examples.

Workflow communicates end-to-end process stages in a structured visual block.

When to use

  • Cross-team delivery flows
  • Spec-to-artifact release pipelines
  • Approval and governance checkpoints

Supported props

PropTypeRequiredDefaultPurpose
model_keystringyes*current route modelModel context for workflow lookup
workflow_idstringyesnoneWorkflow id (<id>.wf) to render
artifact_keystringnoworkflow_idWorkflow artifact tab key
atifact_keystringnoalias of artifact_keyBackward-compatible typo alias

* In specs pages there is no model route context, so set model_key explicitly.

Important

<Stage /> children are not supported by this component. Workflow renders an existing workflow artifact by workflow_id.

Example

These examples render two workflows from this project’s deployment model.

User sign-in

<Workflow model_key="deployment" workflow_id="sign-in" />

Release upgrade

<Workflow model_key="deployment" workflow_id="release-upgrade" />

If the workflow artifact exists, this renders the workflow diagram preview panel.

If workflow_id is missing or cannot be loaded, it shows an inline error placeholder.

Common pitfalls

  • Treating Workflow as a manual layout component with nested stages
  • Omitting model_key in docs pages that are outside model routes
  • Using a workflow_id that does not exist in model workflow artifacts

Last updated on