Skip to content
GitHub11 stars

Displays the status of a task that takes a long time.

Export data
x
@implements IDisposable

<ProgressRoot class="progress" Value="_value">

Anatomy

Import the primitives and assemble the parts:

@using Blazix.Primitives

<ProgressRoot>
    <ProgressLabel />
    <ProgressTrack>
        <ProgressIndicator />
    </ProgressTrack>
    <ProgressValue />
</ProgressRoot>

Leave Value null while the task's progress is unknown, and the parts render as indeterminate.

API Reference

ProgressRoot

Renders a <div> element.

ParameterTypeDefault
Value double? -
Min

The minimum value.

double 0
Max

The maximum value.

double 100
Format string? -
Culture

The culture the value is formatted with.

CultureInfo? -
GetAriaValueText Func<string, double?, string>? -
Render RenderFragment<ProgressRenderProps>? -
ChildContent

The part's content.

RenderFragment? -

Other attributes are passed to the element it renders.

AttributeType
data-complete

Present when the progress has completed.

-
data-indeterminate

Present when the progress is in indeterminate state.

-
data-progressing

Present while the progress is progressing.

-

ProgressLabel

Renders a <span> element.

ParameterTypeDefault
Render RenderFragment<ProgressRenderProps>? -
ChildContent

The part's content.

RenderFragment? -

Other attributes are passed to the element it renders.

AttributeType
data-complete

Present when the progress has completed.

-
data-indeterminate

Present when the progress is in indeterminate state.

-
data-progressing

Present while the progress is progressing.

-

ProgressValue

Renders a <span> element.

ParameterTypeDefault
Render RenderFragment<ProgressRenderProps>? -
ChildContent

The part's content.

RenderFragment? -

Other attributes are passed to the element it renders.

AttributeType
data-complete

Present when the progress has completed.

-
data-indeterminate

Present when the progress is in indeterminate state.

-
data-progressing

Present while the progress is progressing.

-

ProgressTrack

Renders a <div> element.

ParameterTypeDefault
Render RenderFragment<ProgressRenderProps>? -
ChildContent

The part's content.

RenderFragment? -

Other attributes are passed to the element it renders.

AttributeType
data-complete

Present when the progress has completed.

-
data-indeterminate

Present when the progress is in indeterminate state.

-
data-progressing

Present while the progress is progressing.

-

ProgressIndicator

Renders a <div> element.

ParameterTypeDefault
Render RenderFragment<ProgressRenderProps>? -
ChildContent

The part's content.

RenderFragment? -

Other attributes are passed to the element it renders.

AttributeType
data-complete

Present when the progress has completed.

-
data-indeterminate

Present when the progress is in indeterminate state.

-
data-progressing

Present while the progress is progressing.

-