Feedback

Progress bar

@xui/progress-bar

A horizontal bar showing how far along an operation is.

Install

pnpm add @xui/progress-bar

Add the barrel to a standalone component's imports:

import { XuiProgressBarImports } from '@xui/progress-bar';@Component({  imports: [XuiProgressBarImports],  // …})

Examples

Default

Loading preview…

Indeterminate

Loading preview…

Sizes

Loading preview…

Colors

Loading preview…

Without stripes

Loading preview…

API

XuiProgressBar

componentxui-progress-bar

A horizontal bar showing how far along an operation is.

Variants

AxisOptionsDefaultsizesmmdlgmdcolorprimarysecondarysuccesserrorwarninginfoprimarystripestruefalsetrueanimatetruefalsetrueindeterminatetruefalsefalse

Inputs

NameTypeDefaultclassClassValueThe user-defined classes. Merged last so they win over the variant classes.''colorXuiProgressBarVariants['color']Intent colour of the filled portion.this.config.colorsizeXuiProgressBarVariants['size']Track thickness.this.config.sizevaluenumber | null | undefinedHow far along the operation is, between 0 and 1. Out-of-range values are clamped. Leave it unset for an indeterminate bar.undefinedstripesbooleanDraw diagonal stripes across the fill.this.config.stripesanimatebooleanScroll the stripes, so the bar reads as busy. Needs stripes to be visible.this.config.animatearia-labelstring | nullAccessible name for the bar — what is progressing.nullaria-labelledbystring | nullId of an element naming the bar. Use it instead of aria-label when that text is already on screen.null

Source

libs/ui/progress-bar/xui

xUI 3.0.0 — Apache 2.0 licensed. Built with Angular and Tailwind CSS.