Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
28 lines
698 B
JavaScript
28 lines
698 B
JavaScript
import * as React from 'react';
|
|
import Backdrop from '@mui/material/Backdrop';
|
|
import CircularProgress from '@mui/material/CircularProgress';
|
|
import Button from '@mui/material/Button';
|
|
|
|
export default function SimpleBackdrop() {
|
|
const [open, setOpen] = React.useState(false);
|
|
const handleClose = () => {
|
|
setOpen(false);
|
|
};
|
|
const handleOpen = () => {
|
|
setOpen(true);
|
|
};
|
|
|
|
return (
|
|
<div>
|
|
<Button onClick={handleOpen}>Show backdrop</Button>
|
|
<Backdrop
|
|
sx={(theme) => ({ color: '#fff', zIndex: theme.zIndex.drawer + 1 })}
|
|
open={open}
|
|
onClick={handleClose}
|
|
>
|
|
<CircularProgress color="inherit" />
|
|
</Backdrop>
|
|
</div>
|
|
);
|
|
}
|