No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

Transition

A transition component allow enter/leave CSS transitions for React elements.

usage
import { Transition } from "@sharegate/orbit-ui";
sources
Github

Usage

This is a not a component to handle all kind of generic transitions. This component is specialized for enter and leave transitions.

By default, a transition will enter and leave instantly. To animate your enter/leave transition specify a CSS class for the enter and leave props.

Editable example

API

Transition

usage
import { Transition } from "@sharegate/orbit-ui";
NameDescriptionDefault
animateFirstRender
Whether the transition should run on initial mount.
falsetrue
false
children*
React children.
string | number | false | true | ReactElement<any, string | JSXElementConstructor<any>> | ReactFragment | ReactPortal
-
enter
CSS classes to add to the transitioning element during the enter phase.
string
-
leave
CSS classes to add to the transitioning element during the leave phase.
string
-
show*
A controlled show value that determined whether or not the component is displayed.
falsetrue
-