@lifi/widget
Version:
LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
15 lines (14 loc) • 525 B
JavaScript
import { IconButton as MuiIconButton } from '@mui/material';
import { alpha, styled } from '@mui/material/styles';
export const CardIconButton = styled(MuiIconButton)(({ theme }) => {
const backgroundColor = theme.palette.mode === 'light'
? theme.palette.common.black
: theme.palette.common.white;
return {
padding: theme.spacing(0.5),
backgroundColor: alpha(backgroundColor, 0.04),
'&:hover': {
backgroundColor: alpha(backgroundColor, 0.08),
},
};
});