Skip to content

Commit a9a676e

Browse files
authored
Merge pull request #673 from dottharun/buttongroup/theme
feat: add default Theme for MuiButtonGroup component
2 parents d940a43 + a98d501 commit a9a676e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/theme/components.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Components, Theme } from '@mui/material';
22
import { MuiAppBar } from './components/appbar.modifiter';
33
import { MuiButton } from './components/button.modifier';
4+
import { MuiButtonGroup } from './components/buttongroup.modifier';
45
import { MuiCard } from './components/card.modifier';
56
import { MuiCheckbox } from './components/checkbox.modifier';
67
import { MuiCollapse } from './components/collapse.modifier';
@@ -35,6 +36,7 @@ export const components: Components<Theme> = {
3536
MuiSvgIcon,
3637
MuiTab,
3738
MuiSwitch,
39+
MuiButtonGroup,
3840
MuiButton,
3941
MuiListItem
4042
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { Components, Theme } from '@mui/material';
2+
3+
export const MuiButtonGroup: Components<Theme>['MuiButtonGroup'] = {
4+
styleOverrides: {
5+
grouped: ({ theme }) => ({
6+
borderColor: theme.palette.common.white
7+
})
8+
}
9+
};

0 commit comments

Comments
 (0)