Explains how to install the Lottie-React component.

Using Javascript or TypeScript

Ensure that you have npm or yarn installed before installing this component.
  • Install package using npm or yarn.
npm install --save @lottiefiles/react-lottie-player (or)
yarn add @lottiefiles/react-lottie-player
  • Import the react-lottie-player package in your code.
import { Player, Controls } from '@lottiefiles/react-lottie-player';

Quick Start Development

To rapidly build and view the React interface:
  1. 2.
    Run yarn install
  2. 3.
    Run yarn storybook