Skip to content

CircularProgress

Progress indicators are used to display a loading state or visualize the progress of an operation.

import * as React from "react";
import CircularProgress from "@mui/material/CircularProgress";
import Typography from "@mui/material/Typography";
export default () => {
const labelId = React.useId();
return (
<>
<CircularProgress aria-labelledby={labelId} />
<Typography id={labelId}>Analyzing results…</Typography>
</>
);
};
  • The color prop does not support "inherit" or "info".
  • The disableShrink, enableTrackSlot, and thickness props are not supported.
  • Restyled using StrataKit’s visual language.
  • Includes full forced-colors support.
  • Primary: The default. Use when indicating the primary loading state on a page.
  • Secondary: Use when indicating a secondary loading state or when multiple loading states are shown at once.
import * as React from "react";
import CircularProgress from "@mui/material/CircularProgress";
import Typography from "@mui/material/Typography";
export default () => {
const labelId = React.useId();
return (
<>
<CircularProgress color="secondary" aria-labelledby={labelId} />
<Typography id={labelId}>Analyzing results…</Typography>
</>
);
};

Set the variant prop to "determinate" when the completion percentage is known.

import * as React from "react";
import Box from "@mui/material/Box";
import CircularProgress from "@mui/material/CircularProgress";
import Typography from "@mui/material/Typography";
import styles from "./CircularProgress.determinate.module.css";
export default () => {
const labelId = React.useId();
const progress = 50;
return (
<>
<Box className={styles.container}>
<CircularProgress
variant="determinate"
value={progress}
aria-labelledby={labelId}
/>
<Typography variant="caption" className={styles.percentage}>
{progress}%
</Typography>
</Box>
<Typography id={labelId}>Uploading…</Typography>
</>
);
};