FrontPastel/node_modules/@mui/base/useTransition/TransitionContext.d.ts

21 lines
722 B
TypeScript
Raw Normal View History

2024-04-17 13:55:11 +00:00
import * as React from 'react';
export type TransitionContextValue = {
/**
* `true`, if the current element was requested to appear.
*/
requestedEnter: boolean;
/**
* Callback to be called when the element has completely exited.
*/
onExited: () => void;
/**
* Registers a child transition.
* This is used to notify the parent `useTransitionTrigger` hook that a child transition exists
* and state changes must be triggered by the context's callbck functions.
*
* Returns a function to unregister the child transition.
*/
registerTransition: () => () => void;
};
export declare const TransitionContext: React.Context<TransitionContextValue | null>;