diff --git a/skyvern-frontend/src/components/AutoResizingTextarea/AutoResizingTextarea.tsx b/skyvern-frontend/src/components/AutoResizingTextarea/AutoResizingTextarea.tsx index a252ef072..5900f9618 100644 --- a/skyvern-frontend/src/components/AutoResizingTextarea/AutoResizingTextarea.tsx +++ b/skyvern-frontend/src/components/AutoResizingTextarea/AutoResizingTextarea.tsx @@ -1,10 +1,22 @@ -import { useLayoutEffect, useRef } from "react"; +import { ChangeEventHandler, useLayoutEffect, useRef } from "react"; import { Textarea } from "@/components/ui/textarea"; import { cn } from "@/util/utils"; -type Props = React.ComponentPropsWithoutRef; +type Props = { + value: string; + onChange?: ChangeEventHandler; + className?: string; + readOnly?: boolean; + placeholder?: string; +}; -function AutoResizingTextarea(props: Props) { +function AutoResizingTextarea({ + value, + onChange, + className, + readOnly, + placeholder, +}: Props) { const ref = useRef(null); useLayoutEffect(() => { @@ -25,12 +37,15 @@ function AutoResizingTextarea(props: Props) { return (