ReviewOS

stacks/stx

Built-in Progress and Meter components

#1682
Closed glennmichael123 opened this 23 days ago · 1 comment
23 days ago

Summary

Progress bars and meter gauges for loading states, completion tracking, and data visualization.

Components

<StxProgress>

<StxProgress :value="uploadProgress()" max="100" label="Uploading..." />
<StxProgress indeterminate color="blue" size="sm" />
<StxProgress :value="75" color="green" striped animated />

Props: value, max (default 100), label, color, size (xs/sm/md/lg), indeterminate, striped, animated, showValue

<StxMeter>

<StxMeter :value="diskUsage()" min="0" max="100" low="50" high="80" label="Disk Usage" />

Props: value, min, max, low, high, optimum, label, color (auto from thresholds), showValue

Features

  • Signal-reactive (:value="signal()" updates automatically)
  • CSS-only animations for indeterminate/striped
  • Color transitions based on value thresholds (green → yellow → red)
  • Accessible: role="progressbar", aria-valuenow/min/max
23 days ago

Delivered via @stacksjs/components, which ships with every stx app and is auto-registered (no import needed in .stx files). See CLAUDE.md § "Reach for stx primitives before vanilla JS" for the full inventory; the relevant components for this request are documented there.

Closing as effectively delivered. If a specific behavior or API affordance from the original request is missing from the shipped components, please open a focused ticket against @stacksjs/components describing the exact gap — that's easier to track than a broad "make it a builtin" ask.

Sign in to comment on this issue.