Any step component has a $steps property that contains an array containing information on all steps in the wizard. You can use $steps to build any navigation you want. Here's an example:
In the example above, you see that we've used $step->label to render the content of the <li>.
That label property isn't available by default.
You can add any property on a step by adding a stepInfo method your Step component. That method should contain an array with properties regarding your step.
// in your step componentpublicfunctionstepInfo(): array
{
return [
'label' => 'Your cart',
'icon' => 'fa-shopping-cart',
];
}
Any key you return will be available as a property on step.