Getting Started

Introduction

dotLottie-react is a React component that allows you to easily embed Lottie animations in your React applications. It is a wrapper around the dotLottie-web.

Installation

Terminal window
npm install @lottiefiles/dotlottie-react

Basic Usage

import React from 'react';
import { DotLottieReact } from '@lottiefiles/dotlottie-react';
const App = () => {
return (
<DotLottieReact
src="path/to/animation.lottie"
loop
autoplay
/>
);
};