@carbon/ibm-products
Version:
Carbon for IBM Products
18 lines • 556 B
TypeScript
/**
* Copyright IBM Corp. 2025
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { type RefObject } from 'react';
export declare const usePresence: (ref: RefObject<HTMLElement | null>, isOpen: boolean) => {
/**
* Indicates whether the ref object is supposed to be mounted
*/
isPresent: boolean;
/**
* Indicates whether the ref object is currently exiting
*/
isExiting: boolean;
};
//# sourceMappingURL=usePresence.d.ts.map