Progress
Progress, ProgressCircle. They are copied into your app’s ui/ by qatjs add progress: the code is yours to edit.
Example
import { Progress, ProgressCircle } from './ui/progress/progress.qx'
export default function Example() {
return (
<Progress label="Upload" value={62} />
<Progress label="Exporting orders" />
<p class="example-row">
<ProgressCircle label="Sync" value={40} size={16} />
<ProgressCircle label="Sync" value={75} />
<ProgressCircle label="Loading" size={40} />
</p>
)
}Add it
npx qatjs add progressProgress
A bar: `value` of `max` (100), or indeterminate without a value. As a custom element: <ui-progress>.
| Prop | Type | Attribute |
|---|---|---|
label | string | yes |
value | number | yes |
max | number | yes |
showValue | boolean | yes |
ProgressCircle
A ring: `value` of `max` (100), or a spinner without a value. As a custom element: <ui-progress-circle>.
| Prop | Type | Attribute |
|---|---|---|
label | string | yes |
value | number | yes |
max | number | yes |
size | 16 | 24 | 40 | property only |