From e9b0141659e881bbf5e38554d11ab5b3baa04f1c Mon Sep 17 00:00:00 2001 From: Cohan Carpentier Date: Mon, 19 Aug 2024 11:03:23 -0400 Subject: [PATCH] fix: viewportalclassname on nav menu --- navigation-menu.tsx | 10 ++++++---- package.json | 6 +++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/navigation-menu.tsx b/navigation-menu.tsx index 186c6de..8e6a44d 100644 --- a/navigation-menu.tsx +++ b/navigation-menu.tsx @@ -6,15 +6,17 @@ import { cn } from "./cn"; const NavigationMenu = forwardRef< ElementRef, - ComponentPropsWithoutRef ->(({ className, children, ...props }, ref) => ( + ComponentPropsWithoutRef & { + viewPortClassName?: string; + } +>(({ className, children, viewPortClassName, ...props }, ref) => ( {children} - + )); @@ -71,7 +73,7 @@ const NavigationMenuViewport = forwardRef<