18 lines
418 B
TypeScript
18 lines
418 B
TypeScript
import ButtonGroup from "@mui/material/ButtonGroup";
|
|||
|
|
import type { ButtonGroupProps } from "@mui/material/ButtonGroup";
|
||
|
|
|
||
|
|
export const ButtonGroupInput: React.FC<ButtonGroupProps> = ({
|
||
|
|
orientation,
|
||
|
|
...props
|
||
|
|
}) => {
|
||
|
|
return (
|
||
|
|
<ButtonGroup
|
||
|
|
orientation={orientation}
|
||
|
|
{...props}
|
||
|
|
sx={{
|
||
|
|
height: orientation === "horizontal" ? 34 : "auto",
|
||
|
|
boxShadow: "none",
|
||
|
|
}}
|
||
|
|
/>
|
||
|
|
);
|
||
|
|
};
|