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