2026-10-07 19:40:26 +03:30
|
|
|
import * as React from "react";
|
|
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
|
|
|
|
|
|
const Textarea = React.forwardRef<
|
|
|
|
|
HTMLTextAreaElement,
|
|
|
|
|
React.TextareaHTMLAttributes<HTMLTextAreaElement>
|
|
|
|
|
>(({ className, ...props }, ref) => (
|
|
|
|
|
<textarea
|
|
|
|
|
className={cn(
|
2026-10-18 10:51:37 +03:30
|
|
|
// text-base (16px) prevents iOS Safari auto-zoom on focus; sm: downsizes on desktop
|
|
|
|
|
"flex min-h-[120px] w-full rounded-lg border border-input bg-card px-3.5 py-2.5 font-sans text-base sm:text-sm font-medium leading-normal outline-none transition-colors touch-manipulation placeholder:font-sans placeholder:font-medium placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
|
2026-10-07 19:40:26 +03:30
|
|
|
className,
|
|
|
|
|
)}
|
|
|
|
|
ref={ref}
|
|
|
|
|
{...props}
|
|
|
|
|
/>
|
|
|
|
|
));
|
|
|
|
|
Textarea.displayName = "Textarea";
|
|
|
|
|
|
|
|
|
|
export { Textarea };
|