bit Bheadless

Progress / Meter

Progress bars and meters sized from --bit-bh-progress / --bit-bh-meter with arbitrary-value utilities.

Implementation: CSS Tailwind

Determinate progress

role="progressbar" with value attributes and a percentage aria-valuetext. --bit-bh-progress is a unitless 0–100 number: w-[calc(var(--bit-bh-progress,0)*1%)] sizes the indicator, data-[state=complete]: recolors it.

Profile completion 60%

Simulated upload

A timer drives Value in MB against Max="8"; ValueText reads "2.4 of 8 MB uploaded". It starts indeterminate (Value="null") while preparing. Template receives the percentage for the in-bar label; the page disposes the timer.

quarterly-report.pdf Ready
0%

Indeterminate

Leave Value unset: aria-valuenow is omitted and data-state="indeterminate" is set — style it with data-[state=indeterminate]: (gate the animation with motion-safe:).

Syncing mailbox Waiting for the server…

Meter: disk usage

role="meter" for a measurement in a known range. Low / High produce data-level; mark the meter as a group and color the fill with group-data-[level=high]:.

  • System 231 of 256 GB
  • Projects 118 of 256 GB
  • Backup 37 of 256 GB

Meter: password strength

A 0–4 score with Low="2" and High="3". The meter's Template receives the percentage and fills four segments, colored by level.

Strength: Very weak
An unhandled error has occurred. Reload 🗙