# Transition

A component that applies enter/exit transition animations to a single child element.

## Installation

```tsx
import { Transition } from 'uxp/components';
```

## Signature

```tsx
const Transition: React.FunctionComponent<TransitionProps>
```

## Examples

```tsx
<Transition in={true} duration={300} className="fade">
  <div>Content</div>
</Transition>
```

```tsx
<Transition
  in={false}
  duration={500}
  className="slide"
  unmountOnExit={true}
>
  <div style={{ background: '#f0f0f0', padding: '10px' }}>
    Animated Content
  </div>
</Transition>
```

## Properties

| Name          | Type               | Mandatory | Default Value | Example Value |
| ------------- | ------------------ | --------- | ------------- | ------------- |
| children      | React.ReactElement | Yes       | -             | -             |
| className     | string             | Yes       | -             | -             |
| in            | boolean            | Yes       | -             | -             |
| duration      | number             | Yes       | -             | -             |
| unmountOnExit | boolean            | No        | -             | -             |

## Related Types

* [TransitionProps](https://help.iviva.com/uxp/v5/additional-resources/types/transitionprops)
