20 lines
490 B
TypeScript
20 lines
490 B
TypeScript
import React, { forwardRef, type InputHTMLAttributes } from "react"
|
|
import { Input as InputRAC } from "react-aria-components"
|
|
|
|
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>
|
|
<InputRAC {...props} ref={ref} className={styles.input} />
|
|
</Body>
|
|
)
|
|
})
|
|
|
|
export default Input
|