UNPKG

@react-md/menu

Version:

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

17 lines (16 loc) 797 B
import type { ReactElement } from "react"; import type { ListProps } from "@react-md/list"; import type { LabelRequiredForA11y } from "@react-md/utils"; /** @remarks \@since 5.0.0 */ export declare function useMenuBarWidgetFocusId(): string; /** @remarks \@since 5.0.0 */ export declare type BaseMenuBarWidgetProps = Omit<ListProps, "role" | "horizontal">; /** @remarks \@since 5.0.0 */ export declare type MenuBarWidgetProps = LabelRequiredForA11y<BaseMenuBarWidgetProps>; /** * This component implements the keyboard focus behavior for the `MenuBar` * component and probably shouldn't be used externally. * * @remarks \@since 5.0.0 */ export declare function MenuBarWidget({ children, tabIndex, onFocus: propOnFocus, onKeyDown: propOnKeyDown, ...props }: MenuBarWidgetProps): ReactElement;