status
This commit is contained in:
1 parent
cfb1830b55
commit
abadc99bf1
16 files changed
+368
-17
No files matched your search
@@ -0,0 +1,27 @@
|
||||
import { useTheme } from "@mui/material/styles";
|
||||
import ButtonGroup from "@mui/material/ButtonGroup";
|
||||
import type { ButtonGroupProps } from "@mui/material/ButtonGroup";
|
||||
export const ButtonGroupInput: React.FC<ButtonGroupProps> = ({
|
||||
orientation,
|
||||
...props
|
||||
}) => {
|
||||
const theme = useTheme();
|
||||
|
||||
return (
|
||||
<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%",
|
||||
},
|
||||
}}
|
||||
/>
|
||||
);
|
||||
};
|
||||
@@ -1 +1,2 @@
|
||||
export { ButtonInput as Button } from "./Button";
|
||||
export { ButtonGroupInput as ButtonGroup } from "./ButtonGroup";
|
||||
Reference in new issue
Block a user