From 2f4438aed20b4e1d5491a5954b6b422f94428469 Mon Sep 17 00:00:00 2001 From: Samuel Clark Date: Wed, 19 Jun 2024 18:05:02 +0100 Subject: [PATCH] add PathValue and Path as exports from form --- src/shadcn/ui/form.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/shadcn/ui/form.tsx b/src/shadcn/ui/form.tsx index 7feb6d3..58bead9 100644 --- a/src/shadcn/ui/form.tsx +++ b/src/shadcn/ui/form.tsx @@ -9,7 +9,9 @@ import { FormProvider, useFormContext, useForm, - useFieldArray + useFieldArray, + Path, + PathValue } from "react-hook-form"; import { zodResolver } from "@hookform/resolvers/zod"; import { cn } from "src/utils"; @@ -178,5 +180,7 @@ export { useFormField, useForm, useFieldArray, - zodResolver + zodResolver, + Path, + PathValue };