Lumidot component is the core of the library, providing customizable animated dot patterns with various effects and styles.
Import
Basic Usage
With Custom Configuration
Ref Support
The Lumidot component supports React refs throughReact.forwardRef:
Component Properties
For detailed information about all available props, see the Props documentation. For type definitions, see the Types documentation.Accessibility
The component automatically includes accessibility attributes:role="status"for screen readersaria-label="Loading"to describe the loading state- Respects
prefers-reduced-motionfor sequence animations
Data Attributes
The component exposes several data attributes for styling and testing:data-lumidot- Present on the root elementdata-lumidot-pattern- Current pattern namedata-lumidot-variant- Current color variantdata-lumidot-rows- Number of rowsdata-lumidot-cols- Number of columnsdata-lumidot-direction- Animation directiondata-lumidot-mode- Either “sequence” or “wave”data-lumidot-dot- Present on each dot elementdata-lumidot-dot-active- Boolean indicating if dot is currently active