MenuProps interface
Signature
export interface MenuProps extends React.HTMLAttributes<HTMLDivElement>
Import
import { MenuProps } from '@grafana/ui';
Properties
Property | Type | Description |
---|---|---|
ariaLabel | string | |
children | React.ReactNode | |
header | React.ReactNode | React element rendered at the top of the menu |
onClose | () => void | |
onKeyDown | React.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;