@carbon/react
Version:
React components for the Carbon Design System
18 lines (17 loc) • 515 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;
};