Skip to main content

Progress

Ant Design

The Progress component is Ant Design's progress indicator. It shows how far a task or goal has come, as a bar or a ring.

Properties​

Property
Description
Expected Value
PercentHow complete the task is, from 0 to 100.Number. Default: 60
TypeShape of the indicator. line is a bar, circle a full ring and dashboard a ring with a gap at the bottom.line, circle, dashboard. Default: line
StatusState shown on the indicator. active animates the bar, success turns it green with a check, and exception turns it red with a cross.normal, active, success, exception. Default: normal
Show infoShows the percent, or the success or exception icon, next to the bar or inside the ring.On or off. Default: On
StepsSplits a line bar into this many segments. 0 draws a continuous bar.Number. Default: 0
Stroke colorColor of the filled part. Leave it empty to use the theme's primary color.Text
TitleCaption shown above a line bar.Text

Additional Actions​

Each of these can be switched on or off, or set with a logical expression by clicking fx.

Property
Description
Expected Value
VisibilityShows or hides the component. Hidden components keep their space unless Collapse when hidden is on.On or off. Default: On
Collapse when hiddenRemoves the hidden component's space, so the components below it move up.On or off. Default: Off
Loading stateShows the component's loading look and blocks interaction, for example while a query runs.On or off. Default: Off
DisableStops the user from interacting with the component.On or off. Default: Off

Devices​

Property
Description
Expected Value
Show on desktopShows the component in the desktop layout.On or off. Default: On
Show on mobileShows the component in the mobile layout.On or off. Default: Off

Component Specific Actions (CSA)​

Run these from an event handler with Control Component, or from a RunJS query. See Component Specific Actions.

Action
Description
How To Access
Set visibilityShows the component when true, hides it when false.components.progress1.setVisibility(false)
Set disableDisables the component when true, enables it when false.components.progress1.setDisable(false)
Set loadingTurns the loading state on with true, off with false.components.progress1.setLoading(false)

Exposed Variables​

Variable
Description
How To Access
percentHow complete the task is, from 0 to 100.{{components.progress1.percent}}
typeShape of the indicator. line is a bar, circle a full ring and dashboard a ring with a gap at the bottom.{{components.progress1.type}}
statusState shown on the indicator. active animates the bar, success turns it green with a check, and exception turns it red with a cross.{{components.progress1.status}}
showInfoShows the percent, or the success or exception icon, next to the bar or inside the ring.{{components.progress1.showInfo}}
stepsSplits a line bar into this many segments. 0 draws a continuous bar.{{components.progress1.steps}}
strokeColorColor of the filled part. Leave it empty to use the theme's primary color.{{components.progress1.strokeColor}}
titleCaption shown above a line bar.{{components.progress1.title}}
isVisibleWhether the component is visible.{{components.progress1.isVisible}}
isLoadingWhether the component is in its loading state.{{components.progress1.isLoading}}
isDisabledWhether the component is disabled.{{components.progress1.isDisabled}}

Styles​

Style
Default
Primary colorTheme: Brand primary
Text colorTheme: Primary text
Container backgroundTheme: Surface 1
Border colorTheme: Default border
Border radius—
Box shadow0px 0px 0px 0px #00000040

A default that starts with Theme: follows the app's theme until the style is set to another value. See App Themes.