@mui/base
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
24 lines (23 loc) • 770 B
TypeScript
import { TransitionContextValue } from './TransitionContext';
/**
* Allows child elements to be transitioned in and out.
*
* Demos:
*
* - [Transitions](https://mui.com/base-ui/react-transitions/#hooks)
*
* API:
*
* - [useTransitionTrigger API](https://mui.com/base-ui/react-transitions/hooks-api/#use-transition-trigger)
*/
export declare function useTransitionTrigger(requestEnter: boolean): UseTransitionTriggerReturnValue;
export type UseTransitionTriggerReturnValue = {
/**
* The value of a `TransitionContext` to be placed around children that will be transitioned.
*/
contextValue: TransitionContextValue;
/**
* `true`, if the transitioned element has exited completely (or not entered yet).
*/
hasExited: boolean;
};