UNPKG

@react-md/menu

Version:

Create menus that auto-position themselves within the viewport and adhere to the accessibility guidelines

20 lines (19 loc) 670 B
import React from "react"; import { ListItemProps } from "@react-md/list"; export interface MenuItemProps extends ListItemProps { /** * An optional id for the menu item. This is generally recommended, but it can * be ignored. */ id?: string; /** * The current role for the menu item. This will eventually be updated for * some of the other `menuitem*` widgets. */ role?: "menuitem" | "button"; /** * The tab index for the menu item. This should always stay at `-1`. */ tabIndex?: number; } export declare const MenuItem: React.ForwardRefExoticComponent<MenuItemProps & React.RefAttributes<HTMLLIElement>>;