Style !
This commit is contained in:
@@ -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} />;
|
||||
}
|
||||
Reference in New Issue
Block a user