feat: init project SelfChckout
This commit is contained in:
parent
765cc0c7cf
commit
9d31ea245c
62 changed files with 8869 additions and 7149 deletions
18
package/components/atoms/Label.tsx
Normal file
18
package/components/atoms/Label.tsx
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
"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
|
||||
Loading…
Add table
Add a link
Reference in a new issue