@grafana/ui
Version:
Grafana Components Library
17 lines (16 loc) • 656 B
TypeScript
import { type CSSProperties, type ReactElement } from 'react';
import { type MenuItemProps } from './MenuItem';
/** @internal */
export interface SubMenuProps {
parentItemRef: React.RefObject<HTMLElement | null>;
/** List of menu items of the subMenu */
items?: Array<ReactElement<MenuItemProps>>;
/** Open */
isOpen: boolean;
/** Closes the subMenu */
close: () => void;
/** Custom style */
customStyle?: CSSProperties;
}
/** @internal */
export declare const SubMenu: import("react").MemoExoticComponent<({ parentItemRef, items, isOpen, close, customStyle }: SubMenuProps) => import("react/jsx-runtime").JSX.Element>;