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

@libs-ui/components-process-bar-steps

v0.2.356-12

Published

> Component hiển thị quy trình theo từng bước (stepper), hỗ trợ custom label và state.

Readme

@libs-ui/components-process-bar-steps

Component hiển thị quy trình theo từng bước (stepper), hỗ trợ custom label và state.

Giới thiệu

LibsUiComponentsProcessBarStepsComponent là một standalone Angular component dùng để hiển thị các thanh tiến trình dạng bước (stepper). Nó cực kỳ hữu ích cho việc hiển thị trạng thái đơn hàng, quy trình wizard, hoặc lộ trình. Component hỗ trợ 2 chế độ cấu hình: Đơn giản (Simple) và Nâng cao (Advanced).

Tính năng

  • Simple Mode: Cấu hình nhanh số lượng bước và bước hiện tại.
  • Advanced Mode: Tùy chỉnh chi tiết từng bước (Label, Color, State) sử dụng Signals.
  • Customizable Layout: Hỗ trợ vị trí Label (top, bottom, inner) và Alignment (start, center, end).
  • Reactive: Tích hợp chặt chẽ với Angular Signals.
  • OnPush Change Detection: Tối ưu hiệu năng.

Khi nào sử dụng

  • Hiển thị trạng thái đơn hàng (Order Tracking).
  • Hiển thị các bước trong quy trình đăng ký/wizard.
  • Hiển thị lộ trình học tập hoặc milestones.

Cài đặt

# npm
npm install @libs-ui/components-process-bar-steps

# yarn
yarn add @libs-ui/components-process-bar-steps

Import

import { LibsUiComponentsProcessBarStepsComponent } from '@libs-ui/components-process-bar-steps';

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

Ví dụ

Simple Config

<libs_ui-components-process_bar-steps [config]="config" />
readonly config = signal<IProcessBarStepConfigInterface>({
  simpleConfig: signal({
    totalStep: 4,
    currentStep: 2,
    currentStepColor: '#3B82F6',
    stepCompletedColor: '#10B981'
  }),
  widthStep: '60px'
});

Advanced Config

const step1 = signal({ label: 'Step 1', processCompleted: true });
const step2 = signal({ label: 'Step 2', isCurrentProcess: true });

readonly config = signal<IProcessBarStepConfigInterface>({
  advancedConfig: signal([step1, step2]),
  positionLabel: 'bottom'
});

API

libs_ui-components-process_bar-steps

Inputs

| Property | Type | Default | Description | | ---------- | --------------------------------------------- | ---------- | ------------------------------------------- | | [config] | InputSignal<IProcessBarStepConfigInterface> | Required | Object configuration chứa toàn bộ settings. |

IProcessBarStepConfigInterface

| Property | Type | Description | | --------------------- | ------------------------------------------ | ------------------------------------------ | | simpleConfig | WritableSignal<SimpleConfig> | Cấu hình đơn giản. | | advancedConfig | WritableSignal<Signal<AdvancedConfig>[]> | Cấu hình nâng cao (array các signals). | | positionLabel | 'top' \| 'bottom' \| 'inner' | Vị trí hiển thị label. | | justifyLabel | 'start' \| 'center' \| 'end' | Căn lề cho label và nội dung. | | widthStep | string | Chiều rộng mỗi bước (vd: "80px"). | | heightStep | string | Chiều cao mỗi bước. | | backgroundColorStep | string | Màu nền mặc định cho các bước chưa active. | | radiusStep | number | Bo góc (px). | | classInclude | string | Custom class cho container. |

IProcessBarStepSimpleConfigInterface

| Property | Type | Description | | -------------------- | -------- | ------------------------------------------------ | | totalStep | number | Tổng số bước. | | currentStep | number | Bước hiện tại (1-based index). | | completedStep | number | Các bước đã hoàn thành (mặc định = currentStep). | | currentStepColor | string | Màu của bước hiện tại. | | stepCompletedColor | string | Màu của các bước đã hoàn thành. |

IProcessBarStepAdvancedConfigInterface

| Property | Type | Description | | ----------------------- | --------- | --------------------------- | | label | string | Label hiển thị. | | processCompleted | boolean | Trạng thái đã hoàn thành. | | processCompletedColor | string | Màu khi hoàn thành. | | isCurrentProcess | boolean | Trạng thái đang thực hiện. | | currentProcessColor | string | Màu khi đang thực hiện. | | classIncludeStep | string | Custom class cho từng bước. | | classLabel | string | Custom class cho label. |

Công nghệ

| Technology | Version | Purpose | | --------------- | ------- | ---------------- | | Angular | 18+ | Framework | | Angular Signals | - | State management | | OnPush | - | Change Detection |

Demo

npx nx serve core-ui

Truy cập path: /components/process-bar/steps