--- title: Progress description: "`Progress` is a component for visually indicating progress." links: - style: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/progress/progress.style.ts - source: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/progress - storybook: https://yamada-ui.github.io/yamada-ui?path=/story/components-progress--basic --- ```tsx ``` ## Usage ```tsx import { Progress } from "@yamada-ui/react" ``` ```tsx import { Progress } from "@/components/ui" ``` ```tsx import { Progress } from "@workspaces/ui" ``` ```tsx ``` ### Change Variant ```tsx {(variant, index) => ( )} ``` ### Change Size ```tsx {(size, index) => ( )} ``` ### Change Color Scheme ```tsx ``` ### Change Shape ```tsx {(shape, index) => ( )} ``` ### Change Range Color To change the range color, set `rangeColor` to a color. ```tsx ``` ### Change Track Color To change the track color, set `trackColor` to a color. ```tsx ``` ### Stripes To use stripes, set `striped` to `true`. ```tsx ``` ### Animated Stripes To use animated stripes, set `animated` to `true`. ```tsx ``` ### Change Duration To change the duration, set `duration` to a number (seconds) or a string. ```tsx ``` ### Use Animation To use animation, set `value` to `null`. ```tsx ``` ## Props | Prop | Default | Type | Description | | ------------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `as` | - | `As` | The HTML element to render. | | `asChild` | - | `boolean` | Merges its props onto its immediate child. | | `css` | - | `CSSObject \| CSSObject[]` | The CSS object. | | `colorScheme` | - | `"amber" \| "black" \| "blackAlpha" \| "blue" \| "cyan" \| "danger" \| "emerald" \| "error" \| "flashy" \| "fuchsia" ...` | Set color scheme variables. | | `size` | `"md"` | `"lg" \| "md" \| "sm" \| "xl" \| "xs"` | The size of the component. | | `variant` | `"outline"` | `"outline" \| "subtle"` | The variant of the component. | | `animated` | `false` | `boolean` | If `true`, the progress bar will animate. | | `duration` | - | `number \| string` | The animation duration in seconds. | | `max` | `100` | `number` | The maximum value of the progress. | | `min` | `0` | `number` | The minimum value of the progress. | | `rangeColor` | - | `"-moz-initial" \| "ActiveBorder" \| "ActiveCaption" \| "aliceblue" \| "amber.100" \| "amber.200" \| "amber.300" \| "amber.400" \| "amber.50" \| "amber.500" ...` | The color of the progress range. | | `rangeProps` | - | `ProgressRangeProps` | Props for the progress range element. | | `shape` | `"rounded"` | `"circle" \| "rounded" \| "square"` | The shape of the progress bar. | | `striped` | `false` | `boolean` | If `true`, the progress bar will show stripe. | | `trackColor` | - | `"-moz-initial" \| "ActiveBorder" \| "ActiveCaption" \| "aliceblue" \| "amber.100" \| "amber.200" \| "amber.300" \| "amber.400" \| "amber.50" \| "amber.500" ...` | The color of the progress track. | | `value` | `0` | `null \| number` | The value of the progress. If `null`, the progress will be indeterminate. | ## Accessibility Currently, this section is being updated due to the migration of v2.