frontPanel/src/ui_kit/MiniButtonSetting.tsx
2023-12-31 05:53:25 +03:00

18 lines
426 B
TypeScript
Executable File

import { Button, styled } from "@mui/material";
import * as React from "react";
import { ButtonProps } from "@mui/material/Button";
interface Props {
py?: string;
}
export default styled(Button)<ButtonProps & Props>((props) => ({
fontWeight: 400,
fontSize: "14px",
lineHeight: "17px",
paddingTop: props.py || "6px",
paddingBottom: props.py || "6px",
borderRadius: "6px",
gap: "6px",
boxShadow: "none",
}));