Angular Steps components is an indicator for the steps in a wizard workflow. Example below uses nested routes with Steps.
Setup
Refer to PrimeNG setup documentation for download and installation steps for your environment.
Import
import {StepsModule} from 'primeng/steps';
import {MenuItem} from 'primeng/api';
MenuModel API
Steps uses the common menumodel api to define its items, visit MenuModel API for details.
Getting Started
Steps requires a collection of menuitems as its model.
<p-steps [model]="items"></p-steps>
export class MenuDemo {
items: MenuItem[];
ngOnInit() {
this.items = [
{label: 'Step 1'},
{label: 'Step 2'},
{label: 'Step 3'}
];
}
}
Readonly
Items are readonly by default, if you'd like to make them interactive then disable readonly.
<p-steps [model]="items" [readonly]="false"></p-steps>
Theming
Steps supports various themes featuring Material, Bootstrap, Fluent as well as your own custom themes via the Designer tool.
Resources
Visit the PrimeNG Steps showcase for demos and documentation.