import { TextareaHTMLAttributes, forwardRef } from 'react'; import { cx } from '../../../utils/styleUtils'; import style from './Textarea.module.scss'; export interface TextareaProps extends TextareaHTMLAttributes { variant?: 'subtle' | 'ghosted'; fluid?: boolean; resize?: 'none' | 'both' | 'horizontal' | 'vertical'; } const Textarea = forwardRef(function TextArea( { className, variant = 'subtle', fluid, rows = 5, resize = 'none', style: customStyle, ...textareaProps }, ref, ) { return (