Files
automatisch/packages/web/src/components/ConditionalIconButton/style.ts
2021-12-14 01:16:56 +01:00

14 lines
457 B
TypeScript

import { styled } from '@mui/material/styles';
import MuiIconButton, { iconButtonClasses } from '@mui/material/IconButton';
export const IconButton = styled(MuiIconButton)`
&.${iconButtonClasses.colorPrimary} {
background: ${({ theme }) => theme.palette.primary.main};
color: ${({ theme }) => theme.palette.primary.contrastText};
&:hover {
background: ${({ theme }) => theme.palette.primary.dark};
}
}
` as typeof MuiIconButton;