Exiting persistence
Enable elements to animate out when removed from the DOM.ExitingPersistence remains available for existing integrations, but it is not recommended for new
Motion implementations. Keep Motion mounted and use its action prop instead.
Props
| Description | When initially mounting if set to |
|---|---|
| Type | boolean |
| Description | Children can be any valid react node. Either a single element, multiple elements, or multiple elements in an array. |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
| Description | When elements are exiting will exit all elements first and then mount the new ones.
Defaults to |
|---|---|
| Type | boolean |