first commit
This commit is contained in:
21
src/component/Common/StyledFormControl.tsx
Executable file
21
src/component/Common/StyledFormControl.tsx
Executable file
@@ -0,0 +1,21 @@
|
||||
import { Box, Typography } from "@mui/material";
|
||||
|
||||
export interface StyledFormControlProps {
|
||||
title?: React.ReactNode;
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
const StyledFormControl = ({ title, children }: StyledFormControlProps) => {
|
||||
return (
|
||||
<Box>
|
||||
{title && (
|
||||
<Typography fontWeight={600} sx={{ mb: 0.5 }} variant={"body2"}>
|
||||
{title}
|
||||
</Typography>
|
||||
)}
|
||||
{children}
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
||||
export default StyledFormControl;
|
||||
Reference in New Issue
Block a user