Progress

Progress is a component for visually indicating progress.

Usage

import { Progress } from "@yamada-ui/react"
<Progress value={50} />

Change Variant

Change Size

Change Color Scheme

Change Shape

Change Range Color

To change the range color, set rangeColor to a color.

Change Track Color

To change the track color, set trackColor to a color.

Stripes

To use stripes, set striped to true.

Animated Stripes

To use animated stripes, set animated to true.

Change Duration

To change the duration, set duration to a number (seconds) or a string.

Use Animation

To use animation, set value to null.

Props

Accessibility

The Progress follows the WAI-ARIA - Meter Pattern for accessibility.

Setting aria-label or aria-labelledby on Progress will make it readable by screen readers.

<Progress value={88} aria-label="Central Processing Unit (CPU) Usage" />
<VStack gap="sm">
  <Text as="h3" id="label">
    Central Processing Unit (CPU) Usage
  </Text>

  <Progress value={88} aria-labelledby="label" />
</VStack>

ARIA Roles and Attributes

ComponentRole and AttributeUsage
Progressrole="progressbar"Indicates that it is a progress bar.
aria-valueminSets the minimum value. Default: 0
aria-valuemaxSets the maximum value. Default: 100
aria-valuenowRepresents the current value.
aria-labelSet the label that describes the current progress.