Progress Bar

Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.

PreviousNext

Installation

1

Run the CLI

Use the CLI to add the component to your project.

npx @ngzard/ui@latest add progress-bar

Examples

basic

indeterminate

shape

size

Zard Progress Bar API

<z-progress-bar> Component

The z-progress-bar component is a flexible and customizable progress bar that allows full styling control using class-variance-authority (CVA). It provides several configuration options for size, shape, type, and more.

Usage

Properties

Property Description Type Default
[progress] Progress percentage (0-100). number 0
[zType] Defines the color variant. 'default' | 'destructive' | 'accent' 'default'
[zSize] Sets the height of the bar. 'default' | 'sm' | 'lg' 'default'
[zShape] Defines the border radius style. 'default' | 'square' 'default'
[zFull] Makes the container take full width. boolean false
[class] Custom classes for the container. string ''
[barClass] Custom classes for the progress bar. string ''
[zIndeterminate] Define loading infinity state. boolean false