ngx-stepper-component
v1.0.2
Published
Modern Angular stepper/wizard component built on Angular CDK. Updated port of angular-ng-stepper for Angular 20+
Downloads
293
Maintainers
Readme
Angular NGX Stepper
A 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.
Demo
Description
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.
Getting Started
Installation
npm install @angular/cdk ngx-stepper-componentBasic Usage
Import the NgxStepperComponent in your component:
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);
}
}Development server
To start a local development server, run:
npm startOnce 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.
Code scaffolding
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
ng generate component component-nameFor a complete list of available schematics (such as components, directives, or pipes), run:
ng generate --helpBuilding the Library
To build the ngx-stepper library:
npm run buildThis will compile the library and store the build artifacts in the dist/ directory.
Running unit tests
To execute unit tests with the Vitest test runner, use the following command:
npm testRunning end-to-end tests
For end-to-end (e2e) testing, run:
ng e2eAngular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
License
MIT - Original work by Giorgi Merabishvili
Credits
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
