UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

26 lines 1.18 kB
/** * Adds the necessary props to a close button component. Used by the * {@link PopupCloseButton Popup.CloseButton} subcomponent and * {@link PopupCloseIcon Popup.CloseIcon} subcomponent. */ export declare const usePopupCloseButton: 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 onClick: (event?: Event | import("react").SyntheticEvent<Element, Event> | undefined) => void; }>; //# sourceMappingURL=usePopupCloseButton.d.ts.map