init commit
This commit is contained in:
@@ -2,18 +2,14 @@ import * as React from "react"
|
||||
import { cn } from "@/lib/cn"
|
||||
import { fieldClass } from "@/components/ui/input"
|
||||
|
||||
const Textarea = React.forwardRef<HTMLTextAreaElement, React.ComponentPropsWithoutRef<"textarea">>(function Textarea(
|
||||
{ className, ...props },
|
||||
ref
|
||||
) {
|
||||
function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
|
||||
return (
|
||||
<textarea
|
||||
ref={ref}
|
||||
data-slot="textarea"
|
||||
className={cn(fieldClass, "resize-y px-3 py-2.5 leading-normal", className)}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
export { Textarea }
|
||||
|
||||
Reference in New Issue
Block a user