ProgressBar
Render an Astryx progress bar.
Astryx Props
JSON-safe ProgressBar props forwarded to Astryx.
Supported Astryx props include:
label(string; required): accessible labelvalue(number): Current value (ignored when indeterminate).max(number): Maximum value.isLabelHidden(boolean): Visually hide the label (remains accessible).hasValueLabel(boolean): Show formatted value text (ignored when indeterminate).formatValueLabel((value: number, max: number) => string): Custom value label formatter; defaults to a percentage string.variant('accent' or 'success' or 'warning' or 'error' or 'neutral'): Semantic color variant.isIndeterminate(boolean): Animated loading indicator for unknown progress.isDisabled(boolean): Visually disabled state: grays out the fill and text. Use for canceled or inactive operations.xstyle(StyleXStyles): StyleX styles for layout customization (margins, positioning, sizing). Must be a stylex.create() value, not an inline style object like style={{}}.
Props typed as React nodes, render functions, event handlers, refs, or StyleX styles are documented for Astryx parity but cannot be serialized directly from Python unless the wrapper adapts them.
See Astryx component docs: https://astryx.atmeta.com/components/ProgressBar.
Functions
constructor__init__(value=0, *, label, variant='accent', max=None, label_hidden=None, value_label=None, indeterminate=None, disabled=False, **props) -> Noneparamvalueint | float= 0Synchronized component value.
paramlabelstrVisible or accessible label for the component.
paramvariantstr= 'accent'Astryx visual variant.
parammaxint | float | None= NoneMaximum progress value.
paramlabel_hiddenbool | None= NoneWhether to visually hide the accessible label.
paramvalue_labelbool | None= NoneWhether to display the formatted value.
paramindeterminatebool | None= NoneWhether progress is unknown.
paramdisabledbool= FalseWhether to render the inactive visual state.
parampropsAny= {}Returns
None