
Hover to magnify, hold to zoom in.
React Bits brings motion and character to your interface, one copy-paste component at a time.

Hover to magnify, hold to zoom in.
React Bits brings motion and character to your interface, one copy-paste component at a time.
Hover to magnify, hold to zoom in.
React Bits brings motion and character to your interface, one copy-paste component at a time.
More backgrounds in Pro
Shader scenes and animated surfaces made to sit behind real content.
dotRadius | 1.5 | Radius of each dot in pixels. | |
dotSpacing | 14 | Gap between neighbouring dots in pixels. | |
pattern | 'grid' | 'hex' | 'spiral' | 'scatter' | 'grid' | How the dots are laid out: square rows, offset honeycomb rows, a sunflower spiral or a loose scatter. |
gradientFrom | '#5227FF' | Color the gradient starts from. | |
gradientTo | '#FF9FFC' | Color the gradient ends on. | |
gradientAngle | 135 | Direction of the gradient in degrees, the same as CSS linear-gradient. | |
cursorRadius | 240 | Radius of the lens that follows the cursor, in pixels. | |
bulgeStrength | 0.6 | How much the lens magnifies the dots under it, from -1 to 1. Negative values pinch them inward. | |
twist | Swirls the dots around the cursor by this many degrees. Negative values swirl the other way. | ||
glowColor | '#ffffff' | Color the dots inside the glow light up to. | |
glowRadius | 160 | Radius of the glow around the cursor, in pixels. 0 turns it off. | |
glowIntensity | 0.8 | How strongly the dots inside the glow light up and bloom. | |
baseOpacity | 0.55 | Opacity of the dots outside the glow, from 0 to 1. | |
waveAmplitude | How far the dots drift in a slow rolling wave, in pixels. 0 keeps the field still. | ||
sparkle | A few dots at a time softly grow and brighten, like stars twinkling. | ||
speed | How fast the wave and the sparkles animate. | ||
interactive | The lens follows the cursor or finger. Turn off for a purely ambient background. | ||
holdToZoom | Pressing and holding deepens the lens to look closer. | ||
| The field pulls into focus on mount. | |||
lightMode | Prints the dots as ink so they stay crisp on light backgrounds. | ||
opacity | Overall opacity, from 0 to 1. | ||
maxDevicePixelRatio | 2 | Highest pixel ratio the canvas renders at. | |
| Extra class names for the container. | |||
| Inline styles for the container. |
dotRadiusnumberRadius of each dot in pixels.
1.5dotSpacingnumberGap between neighbouring dots in pixels.
14pattern'grid' | 'hex' | 'spiral' | 'scatter'How the dots are laid out: square rows, offset honeycomb rows, a sunflower spiral or a loose scatter.
'grid'gradientFromstringColor the gradient starts from.
'#5227FF'gradientTostringColor the gradient ends on.
'#FF9FFC'gradientAnglenumberDirection of the gradient in degrees, the same as CSS linear-gradient.
135cursorRadiusnumberRadius of the lens that follows the cursor, in pixels.
240bulgeStrengthnumberHow much the lens magnifies the dots under it, from -1 to 1. Negative values pinch them inward.
0.6twistnumberSwirls the dots around the cursor by this many degrees. Negative values swirl the other way.
glowColorstringColor the dots inside the glow light up to.
'#ffffff'glowRadiusnumberRadius of the glow around the cursor, in pixels. 0 turns it off.
160glowIntensitynumberHow strongly the dots inside the glow light up and bloom.
0.8baseOpacitynumberOpacity of the dots outside the glow, from 0 to 1.
0.55waveAmplitudenumberHow far the dots drift in a slow rolling wave, in pixels. 0 keeps the field still.
sparklebooleanA few dots at a time softly grow and brighten, like stars twinkling.
speednumberHow fast the wave and the sparkles animate.
interactivebooleanThe lens follows the cursor or finger. Turn off for a purely ambient background.
holdToZoombooleanPressing and holding deepens the lens to look closer.
introbooleanThe field pulls into focus on mount.
lightModebooleanPrints the dots as ink so they stay crisp on light backgrounds.
opacitynumberOverall opacity, from 0 to 1.
maxDevicePixelRationumberHighest pixel ratio the canvas renders at.
2Extra class names for the container.
Inline styles for the container.



