23 lines
665 B
TypeScript
23 lines
665 B
TypeScript
|
|
import * as React from "react"
|
||
|
|
|
||
|
|
import { cn } from "@/lib/utils"
|
||
|
|
|
||
|
|
function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
|
||
|
|
return (
|
||
|
|
<textarea
|
||
|
|
data-slot="textarea"
|
||
|
|
className={cn(
|
||
|
|
"flex min-h-24 w-full rounded-xl border border-border bg-background px-4 py-3 text-base text-foreground shadow-sm transition-colors",
|
||
|
|
"placeholder:text-muted-foreground",
|
||
|
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
||
|
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
||
|
|
"resize-none leading-relaxed",
|
||
|
|
className,
|
||
|
|
)}
|
||
|
|
{...props}
|
||
|
|
/>
|
||
|
|
)
|
||
|
|
}
|
||
|
|
|
||
|
|
export { Textarea }
|