# LottieStatusAnimation
**📖 Live documentation:** https://cds.coinbase.com/components/animation/LottieStatusAnimation/
A specialized component for displaying trade status animations.
## Import
```tsx
import { LottieStatusAnimation } from '@coinbase/cds-web/animation/LottieStatusAnimation'
```
## Examples
The LottieStatusAnimation component is specifically designed for displaying trade status animations. It provides a seamless way to show different states like loading, success, failure, pending, and card success with smooth transitions between states.
### Basic usage
The component accepts different status values and automatically plays the appropriate animation:
```tsx live
function Example() {
const [status, setStatus] = useState('loading');
const [key, setKey] = useState(0);
function handleReset() {
setKey(key + 1);
setStatus('loading');
}
return (
);
}
```
## Props
| Prop | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `height` | `Height \| undefined` | Yes | `-` | - |
| `width` | `Width \| undefined` | Yes | `-` | - |
| `onFinish` | `(() => void)` | No | `-` | - |
| `status` | `loading \| success \| cardSuccess \| failure \| pending` | No | `-` | - |
| `testID` | `string` | No | `-` | Used to locate this element in unit and end-to-end tests. Under the hood, testID translates to data-testid on Web. On Mobile, testID stays the same - testID |