mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-15 22:32:13 +00:00
17 lines
375 B
TypeScript
17 lines
375 B
TypeScript
import { TextareaHTMLAttributes } from "react"
|
|
import { twMerge } from "tailwind-merge";
|
|
|
|
export const Textarea = ({
|
|
className,
|
|
...rest
|
|
}:TextareaHTMLAttributes<HTMLTextAreaElement>) => {
|
|
return(
|
|
<textarea
|
|
{...rest}
|
|
className={twMerge(
|
|
"rounded-lg bg-ui-controls border border-ui-panel-border py-2 px-4"
|
|
,className
|
|
)}
|
|
/>
|
|
);
|
|
} |