The CDK stepper allows you to build a custom stepper which you can completely style yourself without any specific Material Design styling.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/angular/components/llms.txt
Use this file to discover all available pages before exploring further.
Overview
In this guide, we’ll learn how to build our own custom stepper using the CDK stepper. This approach gives you complete control over the appearance and behavior of your stepper.Create the Custom Stepper Component
Extend CdkStepper
Create a new Angular component that extends
CdkStepper:After extending
CdkStepper, you can access properties like linear, selectedIndex, and steps from the base class.Using the Custom Stepper
Now you can use your custom stepper component and fill it with steps:Each step needs to be wrapped inside a
<cdk-step> tag.Linear Mode
TheCdkStepper provides linear mode which requires the user to complete previous steps before proceeding.
Example Without Forms
Key Features
Step Navigation
Step Navigation
Step Control
Step Control
Control step behavior using:
selectedIndex- Get or set the current steplinear- Enable sequential step validationcompleted- Mark a step as completededitable- Allow returning to completed steps
Custom Content
Custom Content
Use
ng-content or ngTemplateOutlet to project custom content into each step.API Documentation
For detailed information about available properties and methods, see the CDK Stepper API documentation.Custom Form Field
Create custom form controls
Theming
Style your components