next-enterprise/package/components/atoms/Label.tsx

23 lines
410 B
TypeScript
Raw Normal View History

2024-09-19 19:22:43 -05:00
"use client"
import { Typography } from "@mui/material"
import React from "react"
interface LabelProps {
htmlFor: string
text: string
}
const Label = React.memo(({ htmlFor, text }: LabelProps) => {
2024-09-19 19:22:43 -05:00
return (
<label htmlFor={htmlFor} className="mb-2 block">
<Typography
variant="subtitle1">{text}</Typography>
</label>
);
});
Label.displayName = "Label";
2024-09-19 19:22:43 -05:00
export default Label