UNPKG

@sms-frontend/components

Version:

SMS Design React UI Library.

18 lines (17 loc) 838 B
/// <reference types="react" /> import { MenuProps } from './interface'; export declare type HotkeyInfo = { update: boolean; activeKeyPath: string[]; type: 'sibling' | 'generation' | 'enter'; }; export declare type ClearHotkeyInfo = () => void; declare const MenuContext: import("react").Context<Pick<MenuProps, "collapse" | "triggerProps" | "inDropdown" | "icons" | "mode" | "theme" | "levelIndent" | "selectedKeys" | "openKeys" | "tooltipProps" | "autoScrollIntoView" | "scrollConfig"> & { prefixCls?: string; hotkeyInfo?: HotkeyInfo; clearHotkeyInfo?: ClearHotkeyInfo; onClickMenuItem?: (key: string, event: any) => void; onClickSubMenu?: (key: string, level: number, type: 'pop' | 'inline') => void; collectInlineMenuKeys?: (key: string, unmount?: boolean) => void; }>; export default MenuContext;