Files
Checkmate/client/src/Components/Buttons/RoundGradientButton.jsx
T

30 lines
751 B
React
Raw Normal View History

2025-02-18 15:44:19 -08:00
import React from "react";
import Button from "@mui/material/Button";
import { styled } from "@mui/material/styles";
const RoundGradientButton = styled(Button)(({ theme }) => ({
2025-05-27 09:10:32 -07:00
position: "relative",
border: "5px solid transparent",
backgroundClip: "padding-box",
borderRadius: 30,
fontSize: "1.2rem",
color: theme.palette.primary.contrastText,
backgroundColor: theme.palette.background.main,
2025-02-18 15:44:19 -08:00
2025-05-27 09:10:32 -07:00
"&:after": {
position: "absolute",
top: -3,
left: -3,
right: -3,
bottom: -3,
background:
theme.palette.mode === "dark"
? "linear-gradient(90deg, #842bd2, #ff5451, #8c52ff)"
: "linear-gradient(90deg, #842bd2, #ff5451, #8c52ff)",
content: '""',
zIndex: -1,
borderRadius: 30,
},
2025-02-18 15:44:19 -08:00
}));
export default RoundGradientButton;