@octopusdeploy/design-system-components
Version:
The design systems component library.
24 lines (23 loc) • 716 B
TypeScript
import type { PropsWithChildren, KeyboardEventHandler } from "react";
export type MenuProps = (MenuState | {
menuState: MenuState;
}) & CommonMenuProps;
export interface MenuState {
isOpen: boolean;
onClose: () => void;
anchorElement: null | Element;
menuId: string;
}
export interface CommonMenuProps {
anchorOrigin?: MenuAnchorOrigin;
onKeyDown?: KeyboardEventHandler;
accessibleName: string;
}
export interface MenuAnchorOrigin {
horizontal: "left" | "right";
vertical: "top" | "bottom";
}
export declare function CustomMenu(props: PropsWithChildren<MenuProps>): import("react/jsx-runtime").JSX.Element;
export declare namespace CustomMenu {
var displayName: string;
}