qat

Progress

Progress, ProgressCircle. They are copied into your app’s ui/ by qatjs add progress: the code is yours to edit.

Example

Example.qx13 linesOpen in the playground
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

shell1 line
npx qatjs add progress

Progress

A bar: `value` of `max` (100), or indeterminate without a value. As a custom element: <ui-progress>.

Progress: props
PropTypeAttribute
labelstringyes
valuenumberyes
maxnumberyes
showValuebooleanyes

ProgressCircle

A ring: `value` of `max` (100), or a spinner without a value. As a custom element: <ui-progress-circle>.

ProgressCircle: props
PropTypeAttribute
labelstringyes
valuenumberyes
maxnumberyes
size16 | 24 | 40property only