Files
Minikura/apps/web/components/ui/textarea.tsx
T

24 lines
765 B
TypeScript
Raw Normal View History

2026-02-13 15:52:13 +07:00
import * as React from "react";
2026-02-17 18:12:02 +07:00
import { cn } from "@/lib/cn";
2026-02-13 15:52:13 +07:00
2026-02-17 18:12:02 +07:00
export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
2026-02-13 15:52:13 +07:00
const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
({ className, ...props }, ref) => {
return (
<textarea
className={cn(
2026-08-13 01:58:09 +07:00
"flex min-h-[80px] w-full rounded-sm border border-input bg-card px-3 py-2 font-mono text-sm placeholder:text-muted-foreground focus-visible:border-foreground focus-visible:shadow-[inset_3px_0_0_var(--primary)] focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
2026-02-13 15:52:13 +07:00
className
)}
ref={ref}
{...props}
/>
);
}
);
Textarea.displayName = "Textarea";
export { Textarea };