API Reference@grafana/uiMenuProps

Signature

export interface MenuProps extends React.HTMLAttributes<HTMLDivElement> 

Import

import { MenuProps } from '@grafana/ui';

Properties

PropertyTypeDescription
ariaLabelstring
childrenReact.ReactNode
headerReact.ReactNodeReact element rendered at the top of the menu
onClose() => void
onKeyDownReact.KeyboardEventHandler
onOpen(focusOnItem: (itemId: number) => void) => void

ariaLabel property

Signature

ariaLabel?: string;

children property

Signature

children: React.ReactNode;

header property

React element rendered at the top of the menu

Signature

header?: React.ReactNode;

onClose property

Signature

onClose?: () => void;

onKeyDown property

Signature

onKeyDown?: React.KeyboardEventHandler;

onOpen property

Signature

onOpen?: (focusOnItem: (itemId: number) => void) => void;