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

19 lines
369 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.FC<LabelProps> = ({ htmlFor, text }) => {
return (
<Typography variant="subtitle1" component="label" htmlFor={htmlFor} className="mb-2 block">
{text}
</Typography>
)
}
export default Label