UNPKG

@clayui/modal

Version:

ClayModal component

13 lines (12 loc) 600 B
/** * SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com> * SPDX-License-Identifier: BSD-3-Clause */ import React from 'react'; /** * A hook that takes care of controlling click, keyup and keydown events * respectively close the modal after a click on the overlay, close the * modal by pressing the ESC key and control the focus within the Modal. */ declare const useUserInteractions: (modalElementRef: React.MutableRefObject<any>, modalBodyElementRef: React.MutableRefObject<any>, onClick: () => void, show: boolean, content: boolean) => void; export { useUserInteractions };