Size
The component is 100% of its parent's width and height and has no size of its own, so a parent with no height renders nothing. A box at a 16 to 9 ratio suits it.
Props
All optional. The defaults below are what the snippet renders.
| Prop | Values | Default |
|---|---|---|
mode | dark, light | light |
speed | 0 to 3 | 1 |
size | 0.35 to 2.5 | 0.35 |
length | 0.35 to 2.5 | 1.5 |
density | 0.25 to 2.5 | 1 |
opacity | 0.05 to 1 | 1 |
hue | -180 to 180 | 0 |
saturation | 0 to 2 | 1 |
brightness | 0.35 to 1.65 | 1 |
className and style pass through to the root element.