import { cx } from "class-variance-authority" import { forwardRef, type ForwardedRef, useId } from "react" import { TextArea as AriaTextArea } from "react-aria-components" import { InputLabel } from "../InputLabel" import { Typography } from "../Typography" import styles from "./textarea.module.css" import type { TextAreaProps } from "./types" const TextAreaComponent = forwardRef(function TextAreaComponent( { label, placeholder, id, required, ...props }: TextAreaProps, ref: ForwardedRef ) { const generatedId = useId() const textareaId = id || generatedId return ( <> {label && ( {label} )} ) }) export const TextArea = TextAreaComponent as React.ForwardRefExoticComponent< TextAreaProps & React.RefAttributes >