reactbits.dev
Get started

Hover to magnify, hold to zoom in.

React Bits brings motion and character to your interface, one copy-paste component at a time.

Start buildingBrowse components
9:41

Hover to magnify, hold to zoom in.

React Bits brings motion and character to your interface, one copy-paste component at a time.

Start buildingBrowse components

Hover to magnify, hold to zoom in.

React Bits brings motion and character to your interface, one copy-paste component at a time.

Get startedLearn more
Gradient Angle
135
Dot Radius
1.5
Dot Spacing
14
Cursor Radius
240
Bulge Strength
0.6
Twist
0
Glow Radius
160
Glow Intensity
0.8
Base Opacity
0.55
Wave Amplitude
0
Speed

More backgrounds in Pro

Shader scenes and animated surfaces made to sit behind real content.

View all 106
24 properties
dotRadius1.5Radius of each dot in pixels.
dotSpacing14Gap 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.
gradientAngle135Direction of the gradient in degrees, the same as CSS linear-gradient.
cursorRadius240Radius of the lens that follows the cursor, in pixels.
bulgeStrength0.6How much the lens magnifies the dots under it, from -1 to 1. Negative values pinch them inward.
twistSwirls 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.
glowRadius160Radius of the glow around the cursor, in pixels. 0 turns it off.
glowIntensity0.8How strongly the dots inside the glow light up and bloom.
baseOpacity0.55Opacity of the dots outside the glow, from 0 to 1.
waveAmplitudeHow far the dots drift in a slow rolling wave, in pixels. 0 keeps the field still.
sparkleA few dots at a time softly grow and brighten, like stars twinkling.
speedHow fast the wave and the sparkles animate.
interactiveThe lens follows the cursor or finger. Turn off for a purely ambient background.
holdToZoomPressing and holding deepens the lens to look closer.
The field pulls into focus on mount.
lightModePrints the dots as ink so they stay crisp on light backgrounds.
opacityOverall opacity, from 0 to 1.
maxDevicePixelRatio2Highest pixel ratio the canvas renders at.
Extra class names for the container.
Inline styles for the container.
dotRadiusnumber

Radius of each dot in pixels.

Default1.5
dotSpacingnumber

Gap between neighbouring dots in pixels.

Default14
pattern'grid' | 'hex' | 'spiral' | 'scatter'

How the dots are laid out: square rows, offset honeycomb rows, a sunflower spiral or a loose scatter.

Default'grid'
gradientFromstring

Color the gradient starts from.

Default'#5227FF'
gradientTostring

Color the gradient ends on.

Default'#FF9FFC'
gradientAnglenumber

Direction of the gradient in degrees, the same as CSS linear-gradient.

Default135
cursorRadiusnumber

Radius of the lens that follows the cursor, in pixels.

Default240
bulgeStrengthnumber

How much the lens magnifies the dots under it, from -1 to 1. Negative values pinch them inward.

Default0.6
twistnumber

Swirls the dots around the cursor by this many degrees. Negative values swirl the other way.

glowColorstring

Color the dots inside the glow light up to.

Default'#ffffff'
glowRadiusnumber

Radius of the glow around the cursor, in pixels. 0 turns it off.

Default160
glowIntensitynumber

How strongly the dots inside the glow light up and bloom.

Default0.8
baseOpacitynumber

Opacity of the dots outside the glow, from 0 to 1.

Default0.55
waveAmplitudenumber

How far the dots drift in a slow rolling wave, in pixels. 0 keeps the field still.

sparkleboolean

A few dots at a time softly grow and brighten, like stars twinkling.

speednumber

How fast the wave and the sparkles animate.

interactiveboolean

The lens follows the cursor or finger. Turn off for a purely ambient background.

holdToZoomboolean

Pressing and holding deepens the lens to look closer.

introboolean

The field pulls into focus on mount.

lightModeboolean

Prints the dots as ink so they stay crisp on light backgrounds.

opacitynumber

Overall opacity, from 0 to 1.

maxDevicePixelRationumber

Highest pixel ratio the canvas renders at.

Default2

Extra class names for the container.

Inline styles for the container.