A linear progress indicator used to express unspecified wait time or display the length of a process.

Element
igc-linear-progress
Slots
default — Custom label content. A slotted element replaces the default label.
CSS Parts
base — The wrapper of the linear progress.
track — The linear progress track area.
fill — The linear progress indicator area.
secondary — Added to the second fill element, which the indeterminate animation uses.
striped — Added to the fill parts when the progress is striped.
label — The linear progress label.
value — The linear progress label value.
indeterminate — Added to the fill parts while the progress is indeterminate.
primary — Added to the fill parts when the variant is `primary`.
danger — Added to the fill parts when the variant is `danger`.
warning — Added to the fill parts when the variant is `warning`.
info — Added to the fill parts when the variant is `info`.
success — Added to the fill parts when the variant is `success`.
counter — Added to the label value while it shows the default percentage text.
fraction — Added to the label value when the percentage has a fractional part.

Inherited from: IgcProgressBaseComponent

The duration of the fill animation in milliseconds.

animationDuration: number = 500

Defined in src/components/progress/base.ts:63

Inherited from: IgcProgressBaseComponent

Whether the default label is hidden.

hideLabel: boolean = false

Defined in src/components/progress/base.ts:78

Inherited from: IgcProgressBaseComponent

Whether the progress is indeterminate. An indeterminate progress has no value and does not show the default label.

indeterminate: boolean = false

Defined in src/components/progress/base.ts:71

The position for the default label of the control.

labelAlign: LinearProgressLabelAlign = 'top-start'

Defined in src/components/progress/linear-progress.ts:64

Inherited from: IgcProgressBaseComponent

Format string for the default label of the control. Placeholders: {0} - current value of the control. {1} - max value of the control.

labelFormat: string

Defined in src/components/progress/base.ts:88

Inherited from: IgcProgressBaseComponent

The maximum value of the control.

max: number = 100

Defined in src/components/progress/base.ts:42

Whether the fill of the control is striped.

striped: boolean = false

Defined in src/components/progress/linear-progress.ts:57

Inherited from: IgcProgressBaseComponent

The value of the control.

value: number = 0

Defined in src/components/progress/base.ts:49

Inherited from: IgcProgressBaseComponent

The variant of the control.

variant: StyleVariant = 'primary'

Defined in src/components/progress/base.ts:56

Array of styles to apply to the element. The styles should be defined using the css tag function, via constructible stylesheets, or imported from native CSS module scripts.

Note on Content Security Policy:

Element styles are implemented with <style> tags when the browser doesn't support adopted StyleSheets. To use such <style> tags with the style-src CSP directive, the style-src value must either include 'unsafe-inline' or nonce-<base64-value> with <base64-value> replaced be a server-generated nonce.

To provide a nonce to use on generated <style> elements, set window.litNonce to a server-generated nonce in your page's HTML, before loading application code:

``

styles: CSSResult[]

Defined in src/components/progress/linear-progress.ts:41