
Shapes that ripple in waves around your words.
React Bits brings motion and character to your interface, one copy-paste component at a time.

Shapes that ripple in waves around your words.
React Bits brings motion and character to your interface, one copy-paste component at a time.
Shapes that ripple in waves around your words.
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.
text | Optional 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. | |
fontWeight | string | number | 500 | Font weight of the text cutout. |
textSize | 0.6 | Text 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. | |
cellSize | 10 | Size of one grid cell in CSS pixels. | |
dotSize | 0.75 | Glyph 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. | |
speed | How fast the wave bands morph over time. 0 freezes them. | ||
scale | Size of the wave bands. Larger values give broader, calmer swells. | ||
contrast | How sharply the field is cut into its three bands. | ||
brightness | 0.4 | Shifts the balance between dark, mid and bright bands. | |
flow | Drift speed of the field in cells per second. 0 evolves in place. | ||
direction | Drift direction in degrees, used when flow is above 0. | ||
fade | 0.25 | Strength of the radial fade into the background towards the edges. 0 disables it. | |
interactive | Lets the cursor splash into the field, sending ripples that cycle the glyphs and light them up. | ||
splashRadius | 40 | Size of a cursor splash in CSS pixels. | |
splashStrength | 0.4 | How much energy a splash drops in. Higher values throw wider, brighter ripples. | |
glow | 0.35 | Bloom 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. | |||
introDuration | 1.6 | Length of the intro wave in seconds. | |
introKey | string | number | Change this value to replay the intro wave without remounting. | |
paused | Freezes the wave motion. Splashes keep working. | ||
onError | (error: Error) => void | undefined | Called when WebGPU is unavailable or rendering fails. The background color still shows. |
| Extra class names for the root element. |
textstringOptional text carved out of the field. Cells under the glyphs stay empty and the waves flow around them.
fontFamilystringCSS font family used to draw the text cutout.
'Geist, "Geist Sans", system-ui, sans-serif'fontWeightstring | numberFont weight of the text cutout.
500textSizenumberText height as a fraction of the container height. Long text shrinks to fit the width.
0.6shapesstring'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.
'mixed'cellSizenumberSize of one grid cell in CSS pixels.
10dotSizenumberGlyph size as a fraction of the cell.
0.75colorstringGlyph color. One flat color for the whole field.
'#929292'hoverColorstringColor the glyphs step towards inside a splash.
'#ffffff'backgroundColorstringBackground color behind the glyphs.
'#000000'speednumberHow fast the wave bands morph over time. 0 freezes them.
scalenumberSize of the wave bands. Larger values give broader, calmer swells.
contrastnumberHow sharply the field is cut into its three bands.
brightnessnumberShifts the balance between dark, mid and bright bands.
0.4flownumberDrift speed of the field in cells per second. 0 evolves in place.
directionnumberDrift direction in degrees, used when flow is above 0.
fadenumberStrength of the radial fade into the background towards the edges. 0 disables it.
0.25interactivebooleanLets the cursor splash into the field, sending ripples that cycle the glyphs and light them up.
splashRadiusnumberSize of a cursor splash in CSS pixels.
40splashStrengthnumberHow much energy a splash drops in. Higher values throw wider, brighter ripples.
0.4glownumberBloom on lit glyphs. 0 disables the glow pass entirely.
0.35introbooleanPlays a spawn animation on mount: the shapes pop in along a wave that travels from the centre to the corners.
introDurationnumberLength of the intro wave in seconds.
1.6introKeystring | numberChange this value to replay the intro wave without remounting.
pausedbooleanFreezes the wave motion. Splashes keep working.
onError(error: Error) => voidCalled when WebGPU is unavailable or rendering fails. The background color still shows.
undefinedExtra class names for the root element.
Dependencies
1 required package
npm install vgpu


