Skip to content
Theme:

Ui3nProgress ​

Progress components for displaying loading and completion states.

Ui3nProgressLinear ​

Linear progress bar component.

Props

NameTypeDefaultDescription
valuestring | number | undefined0

Progress value

heightstring | number | undefined2

Progress height

withTextboolean | undefinedfalse

Whether to show text

bgColorstring | undefined —

Background color

colorstring | undefined —

Progress color

indeterminateboolean | undefinedfalse

Whether progress is indeterminate

CSS Variables

Set any of these where you need it — on :root, on a container, or on the element itself through [data-ui3n] — and the component follows. Leave them alone and it uses the defaults below.

NameDefault
--ui3n-progress-linear-bgvar(--color-bg-control-primary-default)
--ui3n-progress-linear-colorvar(--color-bg-control-accent-default)
--ui3n-progress-linear-font-size10px
--ui3n-progress-linear-height2px
--ui3n-progress-linear-label-font-size14px
--ui3n-progress-linear-label-line-height16px

Ui3nProgressCircular ​

Circular progress indicator component.

Props

NameTypeDefaultDescription
valuestring | number | undefined0

Progress value

sizestring | number | undefined64

Progress size

widthstring | number | undefined —

Progress width

withTextboolean | undefinedfalse

Whether to show text

bgColorstring | undefined —

Background color

colorstring | undefined —

Progress color

indeterminateboolean | undefinedfalse

Whether progress is indeterminate

Usage Examples ​

Linear progress ​

Linear progress

Basic linear progress bar with value

30%

Linear progress indeterminate ​

Linear progress indeterminate

Indeterminate linear progress for unknown duration

Circular progress ​

Circular progress

Circular progress indicator with value

45%

Circular progress indeterminate ​

Circular progress indeterminate

Indeterminate circular progress for unknown duration