Skip to content

Lottie Animation Catalog

Built-in Lottie animations organized by theme. 58 animations across 20 themes for loading states, feedback, empty states, and UI polish.

Usage

tsx
import { DotLottieReact } from '@lottiefiles/dotlottie-react';
import { lottie } from '@middag-io/react/lottie';

// Play a loading animation
<DotLottieReact src={lottie.loading[0]} loop autoplay />

// Success feedback
<DotLottieReact src={lottie.success[1]} autoplay />

// Empty state illustration
<DotLottieReact src={lottie.emptyState[0]} loop autoplay />

Dependency

bash
npm install @lottiefiles/dotlottie-react

Themes

Each theme provides 2-3 animation variants. Access by index: lottie.{theme}[0], lottie.{theme}[1], etc.

ThemeKeyVariantsUse case
Loadinglottie.loadingspinner-1, spinner-2, spinner-3Page/data loading states
Successlottie.successcheck-1, check-2, check-3Action confirmation feedback
Errorlottie.errorwarning-1, warning-2, warning-3Error/failure states
Empty Statelottie.emptyStateempty-1, empty-2, empty-3No data/results placeholders
Not Foundlottie.notFound404-1, 404-2, 404-3404 pages
Searchlottie.searchsearch-1, search-2, search-3Search in progress/no results
Uploadlottie.uploadupload-1, upload-2, upload-3File upload states
Notificationlottie.notificationbell-1, bell-2, bell-3Alert/notification indicators
Emaillottie.emailmail-1, mail-2, mail-3Email sending/received
Settingslottie.settingsgear-1, gear-2, gear-3Configuration/processing
Userlottie.userprofile-1, profile-2, profile-3User profile/onboarding
Dashboardlottie.dashboardanalytics-1, analytics-2, analytics-3Analytics/data visualization
Calendarlottie.calendarschedule-1, schedule-2Scheduling/date selection
Securitylottie.securitylock-1, lock-2, lock-3Auth/security states
Paymentlottie.paymentwallet-1, wallet-2, wallet-3Payment/transaction states
Cloudlottie.cloudcloud-1, cloud-2Cloud sync/storage
Connectionlottie.connectionnetwork-1, network-2, network-3Network/connectivity
Celebrationlottie.celebrationconfetti-1, confetti-2, confetti-3Achievement/milestone
Onboardinglottie.onboardingwelcome-1, welcome-2, welcome-3First-time user experience
Maintenancelottie.maintenanceconstruction-1, construction-2, construction-3Under maintenance/coming soon

TypeScript

ts
import { lottie, type LottieTheme } from '@middag-io/react/lottie';

// LottieTheme is a union of all theme keys
const theme: LottieTheme = 'loading';
const paths: string[] = lottie[theme];

Live Preview

Run the mock SPA and navigate to /lotties to see all animations rendered with play/pause controls.

bash
npm run mock
# Open http://localhost:5174/lotties

Released under the proprietary license.