carbon-react
Version:
A library of reusable React components for easily building user interfaces.
13 lines (12 loc) • 531 B
TypeScript
export type Alignment = "left" | "right";
type ActionPopoverContextType = {
setOpenPopover: (isOpen: boolean) => void;
focusButton: () => void;
horizontalAlignment: Alignment;
submenuPosition: Alignment;
selectedSubmenuRef: HTMLUListElement | null;
setSelectedSubmenuRef: (ref: HTMLUListElement | null) => void;
};
export declare const ActionPopoverProvider: import("react").Provider<ActionPopoverContextType | null>;
export declare const useActionPopoverContext: () => ActionPopoverContextType;
export {};