add header
This commit is contained in:
1 parent
2246f227d1
commit
a700f446fd
6 files changed
+92
-18
No files matched your search
@@ -1,10 +1,12 @@
|
||||
import Button from "@mui/material/Button";
|
||||
import type { ButtonProps } from "@mui/material/Button";
|
||||
export const ButtonInput: React.FC<ButtonProps> = ({ ...props }) => {
|
||||
|
||||
export const ButtonInput: React.FC<ButtonProps> = ({ filled, sx, ...props }) => {
|
||||
return (
|
||||
<Button
|
||||
filled={filled}
|
||||
{...props}
|
||||
sx={{ textTransform: "none", height: 34, fontWeight: 400, borderRadius: 2 }}
|
||||
sx={{ textTransform: "none", height: 34, fontWeight: 400, borderRadius: 2, ...sx }}
|
||||
/>
|
||||
);
|
||||
};
|
||||
@@ -11,17 +11,6 @@ export const ButtonGroupInput: React.FC<ButtonGroupProps> = ({
|
||||
<ButtonGroup
|
||||
orientation={orientation}
|
||||
{...props}
|
||||
sx={{
|
||||
...(orientation !== "vertical" && { height: 34 }),
|
||||
width: orientation === "vertical" ? "100%" : "auto",
|
||||
border: 1,
|
||||
borderStyle: "solid",
|
||||
borderColor: theme.palette.primary.lowContrast,
|
||||
borderRadius: 2,
|
||||
"& .MuiButtonGroup-grouped": {
|
||||
height: "100%",
|
||||
},
|
||||
}}
|
||||
/>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user