13 lines
405 B
TypeScript
13 lines
405 B
TypeScript
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} />;
|
|
}
|