feat(SW-350): Created Input field for booking widget
This commit is contained in:
22
components/Forms/BookingWidget/FormContent/Input/index.tsx
Normal file
22
components/Forms/BookingWidget/FormContent/Input/index.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import React, { forwardRef, InputHTMLAttributes } from "react"
|
||||
|
||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||
|
||||
import styles from "./input.module.css"
|
||||
|
||||
const Input = forwardRef<
|
||||
HTMLInputElement,
|
||||
InputHTMLAttributes<HTMLInputElement>
|
||||
>(function InputComponent(props, ref) {
|
||||
return (
|
||||
<Body asChild>
|
||||
<input
|
||||
{...props}
|
||||
ref={ref}
|
||||
className={`${styles.input} ${props.className}`}
|
||||
/>
|
||||
</Body>
|
||||
)
|
||||
})
|
||||
|
||||
export default Input
|
||||
Reference in New Issue
Block a user