22 lines
618 B
TypeScript
22 lines
618 B
TypeScript
|
|
import { cn } from "@ui/lib";
|
||
|
|
import * as React from "react";
|
||
|
|
|
||
|
|
const Textarea = React.forwardRef<
|
||
|
|
HTMLTextAreaElement,
|
||
|
|
React.ComponentProps<"textarea">
|
||
|
|
>(({ className, ...props }, ref) => {
|
||
|
|
return (
|
||
|
|
<textarea
|
||
|
|
className={cn(
|
||
|
|
"flex min-h-[80px] w-full rounded-md bg-card shadow-xs border border-input px-3 py-2 text-base placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
||
|
|
className,
|
||
|
|
)}
|
||
|
|
ref={ref}
|
||
|
|
{...props}
|
||
|
|
/>
|
||
|
|
);
|
||
|
|
});
|
||
|
|
Textarea.displayName = "Textarea";
|
||
|
|
|
||
|
|
export { Textarea };
|