@harvest-profit/npk
Version:
NPK UI Design System
38 lines • 1.27 kB
TypeScript
import { useMergeRefs } from '@floating-ui/react';
import React, { CSSProperties } from 'react';
interface MenuContextType {
menu?: boolean;
open?: boolean;
refs?: {
setReference: (node: HTMLElement | null) => void;
setFloating: (node: HTMLElement | null) => void;
reference?: any;
floating?: any;
};
setOpen?: (open: boolean) => void;
context?: any;
floatingStyles?: CSSProperties;
getFloatingProps?: (any: any) => Record<string, any>;
getReferenceProps?: (any: any) => Record<string, any>;
useMergeRefs?: typeof useMergeRefs;
initialFocus?: any;
submenu?: boolean;
labelId?: string | null;
descriptionId?: string | null;
showArrow?: boolean;
arrowRef?: any;
placement?: string;
variant?: string;
}
declare const MenuContext: React.Context<MenuContextType>;
export default MenuContext;
interface MenuContentsContextType {
inMenu: boolean;
variant?: string;
placement?: string;
onDismiss?: (any?: any) => void;
}
export declare const MenuContentsContext: React.Context<MenuContentsContextType>;
export declare const useMenuContext: () => MenuContextType;
export { MenuContextType, MenuContentsContextType };
//# sourceMappingURL=MenuContext.d.ts.map