
Components you shall have, young padawan.
React Bits brings motion and character to your interface, one copy-paste component at a time.

Components you shall have, young padawan.
React Bits brings motion and character to your interface, one copy-paste component at a time.
Components you shall have, young padawan.
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.
starColors | string[] | Up to four colors the stars are picked from. Replaces the hue shift and saturation coloring. | |
hueShift | 140 | Shifts the hue of the stars, in degrees. | |
saturation | Color saturation of the stars, from 0 to 1. | ||
density | How densely the stars are packed. | ||
glowIntensity | 0.3 | Brightness of the glow around each star. | |
starSize | Size of each star glow. | ||
flareIntensity | Strength of the cross flares on the brightest stars. | ||
twinkleIntensity | 0.3 | How much the stars twinkle, from 0 to 1. | |
starSpeed | 0.5 | How fast you travel through the stars. | |
speed | Overall speed of the animation. | ||
rotationSpeed | 0.1 | How fast the starfield rotates. | |
layers | 4 | Number of star layers, from 2 to 8. | |
direction | 'forward' | 'backward' | 'forward' | Whether you fly into the stars or drift back out of them. |
mouseInteraction | Lets the cursor interact with the stars. | ||
mouseRepulsion | Pushes the stars away from the cursor. When off, the field shifts with the cursor instead. | ||
repulsionStrength | 2 | Strength of the push away from the cursor. | |
autoCenterRepulsion | Pushes the stars away from the center without the cursor. 0 turns it off. | ||
clickWarp | Clicking jumps forward at warp speed. | ||
| Drops out of warp speed on mount. | |||
focal | [number, number] | [0.5, 0.5] | Center of the starfield, from 0 to 1. |
rotation | [number, number] | [1, 0] | Fixed rotation of the starfield as a [cos, sin] pair. |
transparent | Shows the page behind the stars. When off, the stars sit on the background color. | ||
backgroundColor | '#000000' | Background behind the stars when transparent is off, or the paper color in light mode. | |
lightMode | Draws the stars as ink for light backgrounds. | ||
opacity | Opacity of the whole effect. | ||
disableAnimation | Freezes the animation. | ||
dpr | auto | Maximum device pixel ratio, capped at 2. | |
| Extra class names for the container. | |||
| Inline styles for the container. |
starColorsstring[]Up to four colors the stars are picked from. Replaces the hue shift and saturation coloring.
hueShiftnumberShifts the hue of the stars, in degrees.
140saturationnumberColor saturation of the stars, from 0 to 1.
densitynumberHow densely the stars are packed.
glowIntensitynumberBrightness of the glow around each star.
0.3starSizenumberSize of each star glow.
flareIntensitynumberStrength of the cross flares on the brightest stars.
twinkleIntensitynumberHow much the stars twinkle, from 0 to 1.
0.3starSpeednumberHow fast you travel through the stars.
0.5speednumberOverall speed of the animation.
rotationSpeednumberHow fast the starfield rotates.
0.1layersnumberNumber of star layers, from 2 to 8.
4direction'forward' | 'backward'Whether you fly into the stars or drift back out of them.
'forward'mouseInteractionbooleanLets the cursor interact with the stars.
mouseRepulsionbooleanPushes the stars away from the cursor. When off, the field shifts with the cursor instead.
repulsionStrengthnumberStrength of the push away from the cursor.
2autoCenterRepulsionnumberPushes the stars away from the center without the cursor. 0 turns it off.
clickWarpbooleanClicking jumps forward at warp speed.
introbooleanDrops out of warp speed on mount.
focal[number, number]Center of the starfield, from 0 to 1.
[0.5, 0.5]rotation[number, number]Fixed rotation of the starfield as a [cos, sin] pair.
[1, 0]transparentbooleanShows the page behind the stars. When off, the stars sit on the background color.
backgroundColorstringBackground behind the stars when transparent is off, or the paper color in light mode.
'#000000'lightModebooleanDraws the stars as ink for light backgrounds.
opacitynumberOpacity of the whole effect.
disableAnimationbooleanFreezes the animation.
dprnumberMaximum device pixel ratio, capped at 2.
autoExtra class names for the container.
Inline styles for the container.



