npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ng-hub-ui-stepper

v21.2.0

Published

A flexible and customizable stepper component for Angular applications

Readme

ng-hub-ui-stepper

npm version license

A flexible, customizable, and accessible stepper component for Angular 21+. Perfect for multi-step forms, wizards, and guided user experiences with a focus on developer experience and modern standards.

[!IMPORTANT] This version (21.2.0) is built for Angular 21 and uses the new Signals architecture.

🧩 Library Family ng-hub-ui

This library is part of the ng-hub-ui ecosystem:

Table of Contents

Features

  • 🚀 Angular 21+ Built-in: Uses Signals and new control flow syntax.
  • 🎨 Highly Customizable: Easy to theme via CSS variables and custom templates.
  • Accessible: Proper ARIA roles and keyboard navigation.
  • 🔢 Multi-layout: Supports Vertical, Sidebar, and RTL modes.
  • 🔄 Smooth Transitions: Built-in CSS animations.
  • 🧩 Flexible Controls: Use default buttons or project your own.

Installation

npm install ng-hub-ui-stepper

Usage (Quick Start)

Import the StepperModule in your module/component:

import { StepperModule } from 'ng-hub-ui-stepper';

@Component({
  standalone: true,
  imports: [StepperModule],
  // ...
})
export class YourComponent { }

In your template:

<hub-stepper>
  <hub-step title="Account Setup">
    <h3>Welcome!</h3>
    <p>Setup your account details here.</p>
  </hub-step>

  <hub-step title="Personal Info">
    <h3>Profile Data</h3>
    <p>Tell us more about yourself.</p>
  </hub-step>

  <hub-step title="Review">
    <h3>Save & Finalize</h3>
    <p>Ready to go?</p>
  </hub-step>
</hub-stepper>

Examples

Linear Stepper

Control navigation by enabling/disabling steps programmatically.

<hub-stepper (completed)="onFinish()">
  <hub-step title="Step 1">
    <!-- Step 1 Content -->
  </hub-step>

  <hub-step title="Step 2" [disabled]="!isStep1Valid()">
    <!-- Step 2 Content -->
  </hub-step>
</hub-stepper>

Custom Navigation

Provide your own navigation template using the stepperNavTpt property.

<hub-stepper>
  <nav *stepperNav="let steps = steps; let currentIndex = currentIndex" class="my-custom-nav">
     @for (step of steps; track step; let i = $index) {
       <button
         [class.active]="i === currentIndex"
         (click)="goTo(i)">
         {{ step.title() }}
       </button>
     }
  </nav>

  <hub-step title="A">...</hub-step>
  <hub-step title="B">...</hub-step>
</hub-stepper>

Custom Buttons

Project your own buttons to override the default footer.

<hub-stepper>
  <hub-step>...</hub-step>

  <button previousButton class="btn-back">Go back</button>
  <button nextButton class="btn-next">Next step</button>
  <button submitButton class="btn-done">Complete</button>
</hub-stepper>

API Reference

StepperComponent (hub-stepper)

| Input | Type | Default | Description | |---|---|---|---| | backLabel | string | 'Back' | Label for the back button. | | continueLabel | string | 'Continue' | Label for the continue button. | | submitLabel | string | 'Submit' | Label for the submit button. | | options | StepperOptions | {} | Visual and layout configuration. |

| Output | Type | Description | |---|---|---| | completed | EventEmitter<void> | Emitted when the last step is completed. | | previousStep | EventEmitter<number> | Emitted when moving back. Passes the new index. | | nextStep | EventEmitter<number> | Emitted when moving forward. Passes the new index. |

StepComponent (hub-step)

| Input | Type | Default | Description | |---|---|---|---| | title | string | optional | Text displayed in navigation. | | disabled | boolean | false | Prevents navigation to this step. |

Directives

  • nextButton: Apply to any button to use it as the "next" control.
  • previousButton: Apply to any button to use it as the "back" control.
  • submitButton: Apply to any button to use it as the "submit" control.
  • stepperNav: Mark a template to be used as custom navigation.

Interfaces

StepperOptions

interface StepperOptions {
  layout?: 'vertical' | 'sidebar';
  rtl?: boolean;
}

Styling

Customize the component using CSS variables. For a complete list of available tokens, see the CSS Variables Reference.

.my-stepper {
  --hub-stepper-primary-color: #009ef7;
  --hub-stepper-surface-color: #ffffff;
  --hub-stepper-gap: 1.5rem;
}

Contributing

We welcome contributions! Please follow our Commit Guidelines.

  1. Fork the repo.
  2. Create your feature branch (git checkout -b feature/amazing-feature).
  3. Commit your changes.
  4. Push to the branch.
  5. Create a Pull Request.

Support

If you find this project helpful, consider supporting its development:

"Buy Me A Coffee"

License

This project is licensed under the MIT License - see the LICENSE file for details.