UNPKG

@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.

17 lines (16 loc) 671 B
import { ToggleButton as MuiToggleButton } from '@mui/material'; import { styled } from '@mui/material/styles'; import { toggleButtonClasses } from '@mui/material/ToggleButton'; export const ToggleButton = styled(MuiToggleButton)(({ theme }) => ({ textTransform: 'none', borderRadius: theme.shape.borderRadius, borderColor: theme.palette.mode === 'light' ? theme.palette.grey[300] : theme.palette.grey[800], [`&.${toggleButtonClasses.selected}`]: { color: theme.palette.mode === 'light' ? theme.palette.primary.main : theme.palette.primary.light, borderColor: 'currentColor !important', }, }));