Skip to content

Progress ​

Brief Introduction ​

The Progress component is used to display the progress status of a task or operation.
You can use <MYProgress></MYProgress> to implement a progress bar.

Basic Usage ​

Use the percentage prop to set the progress percentage.

Code Demo
50%
展开代码

Different Statuses ​

Use the status prop to set the progress bar status.

Code Demo
70%
50%
30%
50%
展开代码

API Reference ​

Props ​

PropDescriptionTypeOptionsDefault
percentageProgress percentagenumberValue between 0-1000
statusProgress bar statusstringsuccess/warning/exception''
formatFormatting functionfunction——

Type Definitions ​

typescript
interface ProgressProps {
  percentage?: number;
  status?: 'success' | 'warning' | 'exception' | '';
  color?: string;
  format?: (percentage: number) => string;
  size?: 'small' | 'medium' | 'large';
}

Released under the MIT License.