source: src/theme/overrides/components/loading-button.tsx@ 5d6f37a

main
Last change on this file since 5d6f37a was 5d6f37a, checked in by Naum Shapkarovski <naumshapkarovski@…>, 7 weeks ago

add customer

  • Property mode set to 100644
File size: 984 bytes
Line 
1import { Theme } from '@mui/material/styles';
2import { loadingButtonClasses, LoadingButtonProps } from '@mui/lab/LoadingButton';
3
4// ----------------------------------------------------------------------
5
6export function loadingButton(theme: Theme) {
7 return {
8 MuiLoadingButton: {
9 styleOverrides: {
10 root: ({ ownerState }: { ownerState: LoadingButtonProps }) => ({
11 ...(ownerState.variant === 'soft' && {
12 [`& .${loadingButtonClasses.loadingIndicatorStart}`]: {
13 left: 10,
14 },
15 [`& .${loadingButtonClasses.loadingIndicatorEnd}`]: {
16 right: 14,
17 },
18 ...(ownerState.size === 'small' && {
19 [`& .${loadingButtonClasses.loadingIndicatorStart}`]: {
20 left: 10,
21 },
22 [`& .${loadingButtonClasses.loadingIndicatorEnd}`]: {
23 right: 10,
24 },
25 }),
26 }),
27 }),
28 },
29 },
30 };
31}
Note: See TracBrowser for help on using the repository browser.