import s from './text-area.module.scss'; import { DetailedHTMLProps, forwardRef, ReactNode, Ref, TextareaHTMLAttributes, } from 'react'; import { clsx } from 'clsx'; type TextAreaProps = { className?: string; children?: ReactNode; variant?: 'default' | 'ghost'; fullWidth?: boolean; error?: string | boolean; errorTextColor?: string; } & DetailedHTMLProps< TextareaHTMLAttributes, HTMLTextAreaElement >; const TextArea = forwardRef(function TextArea( { className, children, variant = 'default', fullWidth = false, error = false, errorTextColor, ...props }: TextAreaProps, ref: Ref, ) { return (
{error && ( {error} )}
); }); export default TextArea;