Skip to content

Progress ​

hx-progress-bar fills from 0 to 100 or slides while the duration is unknown; hx-progress-spinner is a spinning ring.

html
<hx-progress-bar [value]="progress()" ariaLabel="Upload" />
<hx-progress-bar mode="indeterminate" ariaLabel="Loading" />
<hx-progress-spinner ariaLabel="Saving" />
ComponentInputTypeDefaultDescription
barvaluenumber00 to 100, clamped.
barmode'determinate' | 'indeterminate''determinate'Indeterminate slides and has no value.
barshowValue, unitboolean, stringtrue, '%'The value text inside the bar.
barariaLabelstringAccessible name.
spinnerstrokeWidthstring'2'Ring width in the drawing.
spinneranimationDurationstring'2s'CSS time of one turn.
spinnerariaLabelstring'Loading'Accessible name.
  • Accessibility: role="progressbar" with aria-valuemin/aria-valuemax and, when determinate, aria-valuenow; the spinner and an indeterminate bar leave aria-valuenow out. Name every bar. Motion stops under prefers-reduced-motion.

Tokens ​

The look comes from the design tokens --h-progressbar-*, --h-progressspinner-* (see Theming); override them in your theme, never the component CSS.

Part of @gravionlabs/helix-ui; all components are listed in the component reference.

Released under the MIT licence.