@react-md/menu
Version:
Create menus that auto-position themselves within the viewport and adhere to the accessibility guidelines
16 lines (15 loc) • 783 B
TypeScript
import React from "react";
import { ListItemLinkProps, ListItemLinkWithComponentProps } from "@react-md/list";
export interface MenuItemLinkProps extends ListItemLinkProps {
/**
* The current role for the menu item. This will eventually be updated for
* some of the other `menuitem*` widgets.
*/
role?: "menuitem";
/**
* The tab index for the menu item. This should always stay at `-1`.
*/
tabIndex?: number;
}
export declare type MenuItemLinkWithComponentProps = MenuItemLinkProps & ListItemLinkWithComponentProps;
export declare const MenuItemLink: React.ForwardRefExoticComponent<(MenuItemLinkProps & React.RefAttributes<HTMLAnchorElement>) | (MenuItemLinkProps & ListItemLinkWithComponentProps & React.RefAttributes<HTMLAnchorElement>)>;