Installation
Lumidot is available as an npm package and works with React 18 and 19.Package manager
Install Lumidot using your preferred package manager:Requirements
Lumidot requires React as a peer dependency:react: ^18.0.0 or ^19.0.0react-dom: ^18.0.0 or ^19.0.0
Framework compatibility
Lumidot works with all modern React frameworks and setups:- Next.js: Works with both App Router and Pages Router. The component is marked with
'use client'directive. - Vite: Full support with Vite’s React plugin
- Create React App: Works out of the box
- Remix: Compatible with Remix’s React implementation
- Gatsby: Works with Gatsby’s React implementation
Lumidot is a client-side component. If you’re using a framework with server-side rendering (like Next.js App Router), the component automatically handles client-side rendering with the
'use client' directive.TypeScript support
Lumidot is built with TypeScript and includes full type definitions. Types are automatically available when you import the component:Lumidot: The main React componentLumidotProps: TypeScript interface for component propsLumidotPattern: Union type of all 36 pattern namesLumidotVariant: Union type of all 20 color variant namesLumidotDirection: Union type for wave directions ('ltr' | 'rtl' | 'ttb' | 'btt')PATTERN_NAMES: Array of all available pattern namesCOLORS: Object mapping variant names to hex color values
Verify installation
After installation, verify that Lumidot is working by importing it in your app:Next steps
Quick start
Learn how to use Lumidot with a working example