
Radiant beams for creative user interfaces
React Bits brings motion and character to your interface, one copy-paste component at a time.

Radiant beams for creative user interfaces
React Bits brings motion and character to your interface, one copy-paste component at a time.
Radiant beams for creative user interfaces
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.
color | '#ffffff' | Color of the light that glints off the beams. |
beamWidth | 140 | Width of each beam, in px. |
rotation | 30 | Angle of the beams, in degrees. |
speed | How fast the ripples move. | |
waveLength | 233 | Length of the ripples along each beam, in px. |
depth | How deep the ripples are. Deeper ripples catch the light in more places. | |
sharpness | 0.6 | How crisp the glints are, from 0 for soft satin to 1 for sharp, glossy streaks. |
twist | Turns each beam slightly on its own axis, so glints show up on more beams. | |
fillLight | 0.3 | Strength of a dimmer second light from the other side, for fuller, more metallic beams. |
brightness | 1.6 | Strength of the light. |
glow | 0.6 | Soft glow around the brightest glints. |
grain | 0.35 | Strength of the film grain, from 0 to 1. |
variation | Picks a different ripple pattern. Any number works. | |
mouseInteraction | The cursor moves the light along the beams and brightens the glints near it. | |
mouseStrength | How strongly the cursor moves the light. | |
| Sweeps the light in on mount. | ||
fade | Fades the edges into the page, from 0 to 1. | |
opacity | Opacity of the whole effect. | |
lightMode | Prints the glints as soft ink, for light backgrounds. | |
backgroundColor | undefined | Optional solid background. By default the canvas is transparent and the page shows through. |
quality | 0.75 | Render resolution, from 0.25 to 1. Lower values run faster. |
paused | Freezes the animation. | |
dpr | auto | Maximum device pixel ratio, capped at 2. |
| Extra class names for the container. |
colorstringColor of the light that glints off the beams.
'#ffffff'beamWidthnumberWidth of each beam, in px.
140rotationnumberAngle of the beams, in degrees.
30speednumberHow fast the ripples move.
waveLengthnumberLength of the ripples along each beam, in px.
233depthnumberHow deep the ripples are. Deeper ripples catch the light in more places.
sharpnessnumberHow crisp the glints are, from 0 for soft satin to 1 for sharp, glossy streaks.
0.6twistnumberTurns each beam slightly on its own axis, so glints show up on more beams.
fillLightnumberStrength of a dimmer second light from the other side, for fuller, more metallic beams.
0.3brightnessnumberStrength of the light.
1.6glownumberSoft glow around the brightest glints.
0.6grainnumberStrength of the film grain, from 0 to 1.
0.35variationnumberPicks a different ripple pattern. Any number works.
mouseInteractionbooleanThe cursor moves the light along the beams and brightens the glints near it.
mouseStrengthnumberHow strongly the cursor moves the light.
introbooleanSweeps the light in on mount.
fadenumberFades the edges into the page, from 0 to 1.
opacitynumberOpacity of the whole effect.
lightModebooleanPrints the glints as soft ink, for light backgrounds.
backgroundColorstringOptional solid background. By default the canvas is transparent and the page shows through.
undefinedqualitynumberRender resolution, from 0.25 to 1. Lower values run faster.
0.75pausedbooleanFreezes the animation.
dprnumberMaximum device pixel ratio, capped at 2.
autoExtra class names for the container.



