GitHub

Progress Bar

Determinate and indeterminate horizontal loading indicator.

<rhx-progress-bar>

Examples

Determinate Values

0%
25%
65%
100%

Indeterminate

htmx Integration

Properties

Property Type Default Description
rhx-value int 0 Current progress value (0-100)
rhx-label string - Accessible label for the progress bar
rhx-indeterminate bool false Shows an indeterminate animation

Accessibility

  • Renders with role="progressbar" for assistive technology recognition.
  • Determinate bars set aria-valuenow, aria-valuemin="0", and aria-valuemax="100".
  • The rhx-label property maps to aria-label for a meaningful accessible name.
  • Indeterminate mode removes aria-valuenow to indicate unknown progress.