This commit is contained in:
Benjamin Toby
2024-10-17 09:06:54 +01:00
parent 25daf1844e
commit f73b56cdc4
25 changed files with 408 additions and 35 deletions
+24
View File
@@ -0,0 +1,24 @@
import { DetailedHTMLProps, TextareaHTMLAttributes } from "react";
import { twMerge } from "tailwind-merge";
/**
* # Textarea Component
* @className twui-textarea
*/
export default function Textarea({
...props
}: DetailedHTMLProps<
TextareaHTMLAttributes<HTMLTextAreaElement>,
HTMLTextAreaElement
>) {
return (
<textarea
{...props}
className={twMerge(
"w-full px-4 py-2 border border-slate-300 rounded",
"twui-textarea",
props.className
)}
/>
);
}