diff --git a/packages/ui/src/components/menu/menu-trigger.tsx b/packages/ui/src/components/menu/menu-trigger.tsx index 2e392dc..5b9c6d9 100644 --- a/packages/ui/src/components/menu/menu-trigger.tsx +++ b/packages/ui/src/components/menu/menu-trigger.tsx @@ -2,13 +2,15 @@ import { useMenuContext } from './menu.context'; import { type HTMLFavolinkProps, favolink, forwardRef } from '../../system'; import { composeRefs, cx, mergeFns } from '../../utils'; +const TRIGGER_NAME = 'MenuTrigger'; + export type MenuTriggerProps = HTMLFavolinkProps<'button'>; export const MenuTrigger = forwardRef( function MenuTrigger(props, ref) { const { children, className, onClick, ...restProps } = props; - const context = useMenuContext(); + const context = useMenuContext(TRIGGER_NAME); return ( ( ); }, ); + +MenuTrigger.displayName = TRIGGER_NAME;