feat: init project SelfChckout
This commit is contained in:
parent
765cc0c7cf
commit
9d31ea245c
62 changed files with 8869 additions and 7149 deletions
27
package/components/atoms/Input.tsx
Normal file
27
package/components/atoms/Input.tsx
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
"use client"
|
||||
import { TextField } from "@mui/material"
|
||||
import React from "react"
|
||||
|
||||
interface InputProps {
|
||||
type: string
|
||||
placeholder?: string
|
||||
value: string
|
||||
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void
|
||||
autocomplete?: string
|
||||
}
|
||||
|
||||
const Input: React.FC<InputProps> = ({ type, placeholder, value, onChange, autocomplete }) => {
|
||||
return (
|
||||
<TextField
|
||||
type={type}
|
||||
placeholder={placeholder}
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
autoComplete={autocomplete}
|
||||
fullWidth
|
||||
variant="outlined"
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
export default Input
|
||||
Loading…
Add table
Add a link
Reference in a new issue