From 6c07fbe57ca5969c2928355b699169a2ef7c7579 Mon Sep 17 00:00:00 2001 From: "Yingtong Wu (Eden)" Date: Tue, 2 Dec 2025 08:04:46 +0000 Subject: [PATCH 1/5] Add textarea component and a simple test file. --- client/src/app/test/textarea/page.tsx | 33 ++++++++++++++++++ client/src/components/ui/textarea.tsx | 48 +++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 client/src/app/test/textarea/page.tsx create mode 100644 client/src/components/ui/textarea.tsx diff --git a/client/src/app/test/textarea/page.tsx b/client/src/app/test/textarea/page.tsx new file mode 100644 index 0000000..d19fa16 --- /dev/null +++ b/client/src/app/test/textarea/page.tsx @@ -0,0 +1,33 @@ +"use client"; +import React, { useState } from "react"; + +import { Button } from "@/components/ui/button"; +import Textarea from "@/components/ui/textarea"; + +export default function TextareaTestPage() { + const [message, setMessage] = useState(""); + + const handleSubmit = (e: React.FormEvent) => { + e.preventDefault(); + alert(`Submitted text: ${message}`); + }; + + return ( +
+
+
+