import * as React from 'react'; import { styled } from '@mui/material/styles'; import Stack from '@mui/material/Stack'; import CircularProgress, { circularProgressClasses, } from '@mui/material/CircularProgress'; import LinearProgress, { linearProgressClasses } from '@mui/material/LinearProgress'; const BorderLinearProgress = styled(LinearProgress)(({ theme }) => ({ height: 10, borderRadius: 5, [`&.${linearProgressClasses.colorPrimary}`]: { backgroundColor: theme.palette.grey[200], ...theme.applyStyles('dark', { backgroundColor: theme.palette.grey[800], }), }, [`& .${linearProgressClasses.bar}`]: { borderRadius: 5, backgroundColor: '#1a90ff', ...theme.applyStyles('dark', { backgroundColor: '#308fe8', }), }, })); // Inspired by the former Facebook spinners. function FacebookCircularProgress(props) { return ( ({ color: '#1a90ff', animationDuration: '550ms', [`& .${circularProgressClasses.circle}`]: { strokeLinecap: 'round', }, [`& .${circularProgressClasses.track}`]: { opacity: 1, stroke: (theme.vars || theme).palette.grey[200], ...theme.applyStyles('dark', { stroke: (theme.vars || theme).palette.grey[800], }), }, ...theme.applyStyles('dark', { color: '#308fe8', }), })} size={40} thickness={4} {...props} /> ); } // From https://github.com/mui/material-ui/issues/9496#issuecomment-959408221 function GradientCircularProgress() { return ( ); } export default function CustomizedProgressBars() { return (
); }