first commit
This commit is contained in:
16
src/component/Common/BorderLinearProgress.tsx
Executable file
16
src/component/Common/BorderLinearProgress.tsx
Executable file
@@ -0,0 +1,16 @@
|
||||
import { LinearProgress, linearProgressClasses } from "@mui/material";
|
||||
import { styled } from "@mui/material/styles";
|
||||
|
||||
const BorderLinearProgress = styled(LinearProgress)(({ theme }) => ({
|
||||
height: 8,
|
||||
borderRadius: 5,
|
||||
[`&.${linearProgressClasses.colorPrimary}`]: {
|
||||
backgroundColor: theme.palette.grey[theme.palette.mode === "light" ? 200 : 800],
|
||||
},
|
||||
[`& .${linearProgressClasses.bar}`]: {
|
||||
borderRadius: 5,
|
||||
backgroundColor: theme.palette.mode === "light" ? "#1a90ff" : "#308fe8",
|
||||
},
|
||||
}));
|
||||
|
||||
export default BorderLinearProgress;
|
||||
Reference in New Issue
Block a user