19 lines
732 B
TypeScript
19 lines
732 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(
|
||
|
|
"border-3 border-black bg-white placeholder:text-muted-foreground focus-visible:shadow-[4px_4px_0px_rgba(0,0,0,1)] transition duration-100 ease-in-out aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md px-3 py-2 text-base shadow-xs outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
||
|
|
className
|
||
|
|
)}
|
||
|
|
{...props}
|
||
|
|
/>
|
||
|
|
)
|
||
|
|
}
|
||
|
|
|
||
|
|
export { Textarea }
|