17 lines
612 B
TypeScript
17 lines
612 B
TypeScript
import { cn } from "@/lib/utils";
|
|
|
|
export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
|
|
|
|
export function Textarea({ className, ...props }: TextareaProps) {
|
|
return (
|
|
<textarea
|
|
className={cn(
|
|
"flex min-h-[80px] w-full rounded-lg border border-neutral-300 bg-white px-3 py-2.5 text-sm text-neutral-900 placeholder:text-neutral-400 resize-none",
|
|
"focus:border-primary-500 focus:outline-none focus:ring-2 focus:ring-primary-500/20",
|
|
"disabled:cursor-not-allowed disabled:opacity-60",
|
|
className
|
|
)}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|