forked from aave/interface
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStyledToggleButton.tsx
More file actions
36 lines (31 loc) · 993 Bytes
/
StyledToggleButton.tsx
File metadata and controls
36 lines (31 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { styled, ToggleButton, ToggleButtonProps } from '@mui/material';
import React from 'react';
const CustomToggleButton = styled(ToggleButton)<ToggleButtonProps>(({ theme }) => ({
border: '0px',
flex: 1,
backgroundColor: '#383D51',
borderRadius: '4px',
'&.Mui-selected, &.Mui-selected:hover': {
backgroundColor: '#FFFFFF',
borderRadius: '4px !important',
},
'&.Mui-selected, &.Mui-disabled': {
zIndex: 100,
height: '100%',
display: 'flex',
justifyContent: 'center',
'.MuiTypography-subheader1': {
background: theme.palette.gradients.aaveGradient,
backgroundClip: 'text',
textFillColor: 'transparent',
},
'.MuiTypography-secondary14': {
background: theme.palette.gradients.aaveGradient,
backgroundClip: 'text',
textFillColor: 'transparent',
},
},
})) as typeof ToggleButton;
export default function StyledToggleButton(props: ToggleButtonProps) {
return <CustomToggleButton {...props} />;
}