// Textarea Widget - maps to shadcn/ui Textarea import type { WidgetProps } from "@rjsf/utils"; import { Textarea } from "@/components/ui/textarea"; import { cn } from "@/lib/utils"; import { getSizedFieldClassName } from "../utils"; export function TextareaWidget(props: WidgetProps) { const { id, value, disabled, readonly, onChange, onBlur, onFocus, placeholder, schema, options, } = props; const isNullable = Array.isArray(schema.type) ? schema.type.includes("null") : false; const fieldClassName = getSizedFieldClassName(options, "md"); return (