aria-label | text | | |
anchorOrigin | { horizontal: 'center' | 'left' | 'right' | number, vertical: 'bottom' | 'center' | 'top' | number } | { vertical: 'bottom', horizontal: 'left' } | This is the point on the anchor where the popover's anchorEl will attach to. This is not used when the anchorReference is 'anchorPosition'. Options: vertical: [top, center, bottom]; horizontal: [left, center, right]. |
buttonText | 'JSX.Element' | 'string' | | Text or element to display in the button for the menu. |
buttonVariant | 'text' | 'outlined' | 'contained' | contained | The variant to use. |
buttonSx | SxProps | | The system prop that allows defining system overrides as well as additional CSS styles, specifically for the menu button. |
data-testid | string | | data-testid added to the root element of the component as {data-testid} and {data-testid}-button, with sub items as {data-testid}-{item.primary} |
handleNavigationClick | func | | Function passed in to handle url/navigation.
Signature:
function(url:string) => (e: React.MouseEvent) => void |
options | {category: string; primary: string; secondary: string; url: string | null}[] | | Array of objects with category, primary and secondary information, and a url if defined |
sort | boolean | | If true, the items in options will be sorted alphabetically based on the category. |
sortOrder | string[] | | An array of specified order of categories. |
style | {} | | CSS properties applied to the menu's paper component. |
sx | Array<func | object | bool> | func | object | | The system prop that allows defining system overrides as well as additional CSS styles. |
transformOrigin | { horizontal: 'center' | 'left' | 'right' | number, vertical: 'bottom' | 'center' | 'top' | number } | { vertical: 'top', horizontal: 'left', } | This is the point on the popover which will attach to the anchor's origin. Options: vertical: [top, center, bottom, x(px)]; horizontal: [left, center, right, x(px)]. |