UNPKG

@base-ui-components/react

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.

17 lines (16 loc) 735 B
import * as React from 'react'; export type TransitionStatus = 'starting' | 'ending' | undefined; /** * Provides a status string for CSS animations. * @param open - a boolean that determines if the element is open. * @param enabled - a boolean that determines if the logic is enabled. * @param delayStartingStatus - a boolean that set the `starting` status one * tick later. Example use-case: collapsible needs an extra frame in order * to measure the panel contents. * @ignore - internal hook. */ export declare function useTransitionStatus(open: boolean, delayStartingStatus?: boolean): { mounted: boolean; setMounted: React.Dispatch<React.SetStateAction<boolean>>; transitionStatus: TransitionStatus; };