UNPKG

@react-md/menu

Version:

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

14 lines (13 loc) 761 B
import type { HTMLAttributes } from "react"; import type { DividerProps, VerticalDividerProps } from "@react-md/divider"; /** @remarks \@since 5.0.0 */ export interface MenuItemSeparatorProps extends HTMLAttributes<HTMLLIElement>, Pick<DividerProps, "inset" | "vertical">, Pick<VerticalDividerProps, "maxHeight"> { } /** * This component renders a `<li role="separator">` with the divider styles. It * will also automatically render itself vertically instead of horizontally if * the menu is rendering horizontally. * * @remarks \@since 5.0.0 Renders as an `<li>` instead of a `<div>` or `<hr />`. */ export declare const MenuItemSeparator: import("react").ForwardRefExoticComponent<MenuItemSeparatorProps & import("react").RefAttributes<HTMLLIElement>>;