Package Manager
Install Lumidot using your preferred package manager:Peer Dependencies
Lumidot requires React 18 or later. If you don’t have React installed yet:Lumidot supports both React 18 and React 19. The library is marked as
'use client' and works seamlessly with Next.js App Router and other React Server Components frameworks.TypeScript Setup
Lumidot is written in TypeScript and includes full type definitions out of the box. No additional@types packages are needed.
Type Imports
Import types alongside the component:Available Types
Type-Safe Patterns and Colors
Lumidot exports constants for runtime pattern and color validation:Framework-Specific Notes
Next.js (App Router)
Next.js (App Router)
Lumidot works out of the box with Next.js 13+ and the App Router. The component is already marked as
'use client'.If you’re using Lumidot in a Server Component file, you’ll need to either:
- Import it in a Client Component (
'use client') - Dynamically import it with
next/dynamic
Next.js (Pages Router)
Next.js (Pages Router)
Works without any additional configuration:
Vite
Vite
Lumidot is optimized for Vite with ESM and tree-shaking support:No additional configuration needed.
Create React App
Create React App
Import and use directly:
Remix
Remix
Lumidot works with Remix’s client-side rendering:
Bundle Size
Lumidot has zero runtime dependencies beyond React:- Minified: ~6KB
- Minified + Gzipped: ~2.5KB
Verification
Verify your installation by importing and rendering the component:Next Steps
Quickstart
Build your first loading animation in under 2 minutes