diff --git a/src/renderer/components/ui/form.tsx b/src/renderer/components/ui/form.tsx new file mode 100644 index 0000000..ca5791b --- /dev/null +++ b/src/renderer/components/ui/form.tsx @@ -0,0 +1,153 @@ +"use client" + +import * as React from "react" +import * as LabelPrimitive from "@radix-ui/react-label" +import { Slot } from "@radix-ui/react-slot" +import { + Controller, + type ControllerProps, + type FieldPath, + type FieldValues, + useFormContext, +} from "react-hook-form" + +import { cn } from "@/lib/utils" + +const Form = React.forwardRef< + HTMLFormElement, + React.ComponentProps<"form"> +>(({ className, ...props }, ref) => { + const methods = useFormContext() + return ( +