This commit is contained in:
2026-10-29 17:39:02 -03:00
parent bf00317e95
commit 3a0414a057
19 changed files with 214 additions and 56 deletions
+12
View File
@@ -0,0 +1,12 @@
import type { JSX } from "preact";
import { twMerge } from "@/src/tw.ts";
import { FIELD_CLASS } from "./InputField.tsx";
interface TextAreaFieldProps extends Omit<JSX.TextareaHTMLAttributes<HTMLTextAreaElement>, "class"> {
class?: string;
}
export default function TextAreaField({ class: extra, ...props }: TextAreaFieldProps) {
return <textarea class={twMerge(FIELD_CLASS, extra)} {...props} />;
}