MenuProps interface

Signature

  1. export interface MenuProps extends React.HTMLAttributes<HTMLDivElement>

Import

  1. 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

  1. ariaLabel?: string;

children property

Signature

  1. children: React.ReactNode;

header property

React element rendered at the top of the menu

Signature

  1. header?: React.ReactNode;

onClose property

Signature

  1. onClose?: () => void;

onKeyDown property

Signature

  1. onKeyDown?: React.KeyboardEventHandler;

onOpen property

Signature

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