This commit is contained in:
2026-03-04 17:35:14 +01:00
parent f73b56cdc4
commit db26e26495
113 changed files with 12433 additions and 169 deletions
+5 -17
View File
@@ -1,24 +1,12 @@
import { DetailedHTMLProps, TextareaHTMLAttributes } from "react";
import { twMerge } from "tailwind-merge";
import Input, { InputProps } from "./Input";
/**
* # Textarea Component
* @className twui-textarea
*/
export default function Textarea({
export default function Textarea<KeyType extends string>({
componentRef,
...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
)}
/>
);
}: InputProps<KeyType>) {
return <Input istextarea {...props} componentRef={componentRef} />;
}