front-hub/src/components/Button.tsx

33 lines
802 B
TypeScript
Raw Normal View History

2022-11-17 12:25:23 +00:00
import { Button as DefaultButton } from "@mui/material";
interface Props {
fullWidth?: boolean;
backgroundColor?: string;
color?: string;
variant: "outlined" | "contained";
children: React.ReactNode;
}
export default function Button({ fullWidth = false, backgroundColor, color, variant, children }: Props) {
return (
<div>
<DefaultButton
fullWidth={fullWidth}
variant={variant}
sx={{
backgroundColor,
color,
borderRadius: "8px",
px: "41.5px",
py: "9px",
boxShadow: "none",
}}
>
{children}
</DefaultButton>
</div>
);
}