@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
24 lines • 989 B
TypeScript
/**
* Adds the necessary props to the {@link PopupHeading Popup.Heading} subcomponent.
*/
export declare const usePopupHeading: import("@workday/canvas-kit-react/common").BehaviorHook<{
state: {
stackRef: import("react").RefObject<HTMLDivElement>;
targetRef: import("react").RefObject<HTMLButtonElement>;
initialFocusRef: import("react").RefObject<any> | undefined;
returnFocusRef: import("react").RefObject<any> | undefined;
placement: import("@popperjs/core").Placement;
id: string;
visibility: "hidden" | "visible";
};
events: {
updatePlacement(data: {
placement: import("@popperjs/core").Placement;
}): void;
show(event?: Event | import("react").SyntheticEvent<Element, Event> | undefined): void;
hide(event?: Event | import("react").SyntheticEvent<Element, Event> | undefined): void;
};
}, {
readonly id: string;
}>;
//# sourceMappingURL=usePopupHeading.d.ts.map