Modern Angular stepper/wizard component built on Angular CDK. Updated port of angular-ng-stepper for Angular 20+
npm install ngx-stepper-componentA modern Angular stepper/wizard component built on top of Angular CDK Stepper.
This is an updated port of angular-ng-stepper by Giorgi Merabishvili, modernized for Angular 20+ with standalone components and signals.
The ngx-stepper is a simple wizard/stepper component for Angular. It extends the Angular CDK Stepper with a modern, maintainable codebase using Angular's latest features including standalone components, signals, and @angular/cdk stepper utilities.
``bash`
npm install @angular/cdk ngx-stepper-component
Import the NgxStepperComponent in your component:
`typescript
import { NgxStepperComponent, StepperStep } from 'ngx-stepper';
export class MyStepperComponent {
steps: StepperStep[] = [
{ label: 'Step 1', content: 'First step content' },
{ label: 'Step 2', content: 'Second step content' },
{ label: 'Step 3', content: 'Third step content' }
];
onStepChanged(index: number) {
console.log('Step changed to:', index);
}
}
`
To start a local development server, run:
`bash`
npm start
Once the server is running, open your browser and navigate to http://localhost:4200/. The application will automatically reload whenever you modify any of the source files.
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
`bash`
ng generate component component-name
For a complete list of available schematics (such as components, directives, or pipes), run:
`bash`
ng generate --help
To build the ngx-stepper library:
`bash`
npm run build
This will compile the library and store the build artifacts in the dist/ directory.
To execute unit tests with the Vitest test runner, use the following command:
`bash`
npm test
For end-to-end (e2e) testing, run:
`bash``
ng e2e
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
MIT - Original work by Giorgi Merabishvili
This project is based on angular-ng-stepper and updated for modern Angular versions (20+) with the following improvements:
- Standalone components
- Angular signals for state management
- Modern Angular CDK integration
- Improved TypeScript support
- Enhanced accessibility
- Angular CDK Stepper Documentation
- Original Project
- Angular CLI Overview