UNPKG

732 BTypeScriptView Raw
1export type UseTransitionStateManagerReturnValue = {
2 /**
3 * `true`, if the current element should be visible.
4 */
5 requestedEnter: boolean;
6 /**
7 * Callback to be called when the element has completely exited.
8 */
9 onExited: () => void;
10};
11/**
12 * Allows an element to be transitioned in and out.
13 * The transition is triggerred by a `TransitionContext` placed above in the component tree.
14 *
15 * Demos:
16 *
17 * - [Transitions](https://mui.com/base-ui/react-transitions/#hooks)
18 *
19 * API:
20 *
21 * - [useTransitionStateManager API](https://mui.com/base-ui/react-transitions/hooks-api/#use-transition-state-manager)
22 */
23export declare function useTransitionStateManager(): UseTransitionStateManagerReturnValue;