A hook to manage fade in/fade out and mounted state.

Parameters:
NameTypeDescription
argsobject

The arguments for the hook.

Properties
NameTypeDescription
animationDelaynumber

The animation delay for closing the component.

initialIsMountedboolean

The initial value of the isMounted state.

initialIsOpenboolean

The initial value of the isOpen state.

Since
  • 5.1.6
Returns:

The fade in out state.

Type: 
object

Methods

(inner) fadeIn() → {void}

Mount and fade in a component.

Since
  • 5.1.6
Returns:
Type: 
void

(inner) fadeOut() → {void}

Fade out and unmount a component.

Since
  • 5.1.6
Returns:
Type: 
void