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
61 lines
1.4 KiB
JavaScript
61 lines
1.4 KiB
JavaScript
import Button from '@mui/material/Button';
|
|
import SaveIcon from '@mui/icons-material/Save';
|
|
import Stack from '@mui/material/Stack';
|
|
|
|
export default function LoadingButtons() {
|
|
return (
|
|
<Stack spacing={2}>
|
|
<Stack direction="row" spacing={2}>
|
|
<Button loading variant="outlined">
|
|
Submit
|
|
</Button>
|
|
<Button loading loadingIndicator="Loading…" variant="outlined">
|
|
Fetch data
|
|
</Button>
|
|
<Button
|
|
loading
|
|
loadingPosition="start"
|
|
startIcon={<SaveIcon />}
|
|
variant="outlined"
|
|
>
|
|
Save
|
|
</Button>
|
|
</Stack>
|
|
<Button
|
|
fullWidth
|
|
loading
|
|
loadingPosition="start"
|
|
startIcon={<SaveIcon />}
|
|
variant="outlined"
|
|
>
|
|
Full width
|
|
</Button>
|
|
<Button
|
|
fullWidth
|
|
loading
|
|
loadingPosition="end"
|
|
endIcon={<SaveIcon />}
|
|
variant="outlined"
|
|
>
|
|
Full width
|
|
</Button>
|
|
<Stack direction="row" spacing={2}>
|
|
<Button loading variant="outlined" loadingPosition="start">
|
|
Submit
|
|
</Button>
|
|
<Button loading variant="outlined" loadingPosition="end">
|
|
Submit
|
|
</Button>
|
|
<Button
|
|
loading
|
|
variant="outlined"
|
|
loadingPosition="end"
|
|
startIcon={<SaveIcon />}
|
|
>
|
|
Save
|
|
</Button>
|
|
</Stack>
|
|
</Stack>
|
|
);
|
|
}
|