1.0.1 • Published 1 year ago

react-inoutro v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-inoutro

The Inoutro component is a versatile component designed to manage the transition states of child elements. It provides a controlled way to handle animations and transitions, ensuring smooth entry and exit animations for the elements it wraps.

Inoutro

Props

PropTypeRequiredDefaultDescription
renderInoutroRenderPropsYes-A render prop function that receives the current transition status, duration, type, and visibility status. It should return a React node that represents the component to be rendered.
openbooleanYes-A boolean value that determines whether the child component should be shown or hidden.
durationnumberNo250The duration of the transition in milliseconds. This defines how long the enter and exit transitions should take.
initialTransitionStatusNoundefinedThe initial transition status of the component. It can be used to set the component's state at the start.
onEnter() => voidNo-A callback function that is called when the component completes the enter transition.
onExit() => voidNo-A callback function that is called when the component completes the exit transition and is fully closed.
ignoreIntrobooleanNofalseA boolean flag to ignore the intro transition. When true, the component does not perform the enter animation.
ignoreOutrobooleanNofalseA boolean flag to ignore the outro transition. When true, the component does not perform the exit animation.
safeModebooleanNofalseA boolean flag that determines whether to keep rendering the child component after onExit.
1.0.1

1 year ago

0.0.4

1 year ago

1.0.0

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago