# 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` | `string \| number` | Yes | `-` | We use aspect ratio to calculate the unset dimension based on the set dimension and a given aspect ratio. Only width or height is allowed, but not both. | | `width` | `string \| number` | Yes | `-` | We use aspect ratio to calculate the unset dimension based on the set dimension and a given aspect ratio. Only width or height is allowed, but not both. | | `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 |