reactbits.dev
Get started

Shapes that ripple in waves around your words.

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

Start buildingBrowse components
9:41

Shapes that ripple in waves around your words.

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

Start buildingBrowse components

Shapes that ripple in waves around your words.

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

Get startedLearn more
Text
Cell Size
10
Dot Size
0.75
Text Size
0.6
Speed
Wave Scale
Contrast
Brightness
0.4
Flow
0
Direction
0
Edge Fade
0.25
Splash Radius
40
Splash Strength
0.4
Glow
0.35
Intro Duration
1.6

More backgrounds in Pro

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

View all 106
27 properties
textOptional text carved out of the field. Cells under the glyphs stay empty and the waves flow around them.
fontFamily'Geist, "Geist Sans", system-ui, sans-serif'CSS font family used to draw the text cutout.
fontWeightstring | number500Font weight of the text cutout.
textSize0.6Text height as a fraction of the container height. Long text shrinks to fit the width.
shapes'mixed''mixed' draws dark bands as triangles, mid bands as circles and bright bands as squares. 'squares', 'circles' or 'triangles' use one glyph and vary its size per band instead.
cellSize10Size of one grid cell in CSS pixels.
dotSize0.75Glyph size as a fraction of the cell.
color'#929292'Glyph color. One flat color for the whole field.
hoverColor'#ffffff'Color the glyphs step towards inside a splash.
backgroundColor'#000000'Background color behind the glyphs.
speedHow fast the wave bands morph over time. 0 freezes them.
scaleSize of the wave bands. Larger values give broader, calmer swells.
contrastHow sharply the field is cut into its three bands.
brightness0.4Shifts the balance between dark, mid and bright bands.
flowDrift speed of the field in cells per second. 0 evolves in place.
directionDrift direction in degrees, used when flow is above 0.
fade0.25Strength of the radial fade into the background towards the edges. 0 disables it.
interactiveLets the cursor splash into the field, sending ripples that cycle the glyphs and light them up.
splashRadius40Size of a cursor splash in CSS pixels.
splashStrength0.4How much energy a splash drops in. Higher values throw wider, brighter ripples.
glow0.35Bloom on lit glyphs. 0 disables the glow pass entirely.
Plays a spawn animation on mount: the shapes pop in along a wave that travels from the centre to the corners.
introDuration1.6Length of the intro wave in seconds.
introKeystring | numberChange this value to replay the intro wave without remounting.
pausedFreezes the wave motion. Splashes keep working.
onError(error: Error) => voidundefinedCalled when WebGPU is unavailable or rendering fails. The background color still shows.
Extra class names for the root element.
textstring

Optional text carved out of the field. Cells under the glyphs stay empty and the waves flow around them.

fontFamilystring

CSS font family used to draw the text cutout.

Default'Geist, "Geist Sans", system-ui, sans-serif'
fontWeightstring | number

Font weight of the text cutout.

Default500
textSizenumber

Text height as a fraction of the container height. Long text shrinks to fit the width.

Default0.6
shapesstring

'mixed' draws dark bands as triangles, mid bands as circles and bright bands as squares. 'squares', 'circles' or 'triangles' use one glyph and vary its size per band instead.

Default'mixed'
cellSizenumber

Size of one grid cell in CSS pixels.

Default10
dotSizenumber

Glyph size as a fraction of the cell.

Default0.75
colorstring

Glyph color. One flat color for the whole field.

Default'#929292'
hoverColorstring

Color the glyphs step towards inside a splash.

Default'#ffffff'
backgroundColorstring

Background color behind the glyphs.

Default'#000000'
speednumber

How fast the wave bands morph over time. 0 freezes them.

scalenumber

Size of the wave bands. Larger values give broader, calmer swells.

contrastnumber

How sharply the field is cut into its three bands.

brightnessnumber

Shifts the balance between dark, mid and bright bands.

Default0.4
flownumber

Drift speed of the field in cells per second. 0 evolves in place.

directionnumber

Drift direction in degrees, used when flow is above 0.

fadenumber

Strength of the radial fade into the background towards the edges. 0 disables it.

Default0.25
interactiveboolean

Lets the cursor splash into the field, sending ripples that cycle the glyphs and light them up.

splashRadiusnumber

Size of a cursor splash in CSS pixels.

Default40
splashStrengthnumber

How much energy a splash drops in. Higher values throw wider, brighter ripples.

Default0.4
glownumber

Bloom on lit glyphs. 0 disables the glow pass entirely.

Default0.35
introboolean

Plays a spawn animation on mount: the shapes pop in along a wave that travels from the centre to the corners.

introDurationnumber

Length of the intro wave in seconds.

Default1.6
introKeystring | number

Change this value to replay the intro wave without remounting.

pausedboolean

Freezes the wave motion. Splashes keep working.

onError(error: Error) => void

Called when WebGPU is unavailable or rendering fails. The background color still shows.

Defaultundefined

Extra class names for the root element.

Dependencies

1 required package

npm install vgpu