className and style Props
Lumidot accepts standard ReactclassName and style props, allowing you to integrate it seamlessly with your existing CSS or styling solution.
Using className
Apply custom CSS classes to the root span element:Using inline styles
Pass CSS properties directly via thestyle prop:
The component uses
display: inline-grid by default. Grid properties like gridTemplateColumns and gridTemplateRows are calculated automatically based on rows and cols props.Glow Effect
Theglow prop controls the intensity of the shadow effect around active dots. The glow creates a luminous appearance by applying two layered box shadows.
How it works
From the source code (index.tsx:186-189):
- Inner shadow at 40% of glow value using the base color
- Outer shadow at 100% of glow value using a brightened color with 60% opacity
Usage examples
Scale
Thescale prop multiplies the overall size of the component. The base size is 20px, and scaling adjusts both the container and individual dots proportionally.
Size calculation
Fromindex.tsx:259-263:
Usage examples
Combining customization options
You can combine multiple customization props to create unique loading animations:Next Steps
Learn how to control animation timing and direction