22 lines
474 B
TypeScript
22 lines
474 B
TypeScript
import React from "react";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
export function Textarea({
|
|
type = "text",
|
|
placeholder = "Enter text...",
|
|
className = "",
|
|
...props
|
|
}) {
|
|
return (
|
|
<textarea
|
|
placeholder={placeholder}
|
|
rows={4}
|
|
className={cn(
|
|
"px-4 py-2 w-full border-2 rounded border-input shadow-md transition focus:outline-hidden focus:shadow-xs placeholder:text-muted-foreground",
|
|
className
|
|
)}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|