"use client"; import { forwardRef, type TextareaHTMLAttributes } from "react"; import { cn } from "@/lib/utils"; export type TextareaProps = TextareaHTMLAttributes; /** * Textarea that grows with its content instead of scrolling, down to three * rows and up to a scrollable cap. Shares Input's focus ring. */ export const Textarea = forwardRef(function Textarea( { className, rows = 3, ...props }, ref, ) { return (