
A spectrum of colors that spark creativity
React Bits brings motion and character to your interface, one copy-paste component at a time.

A spectrum of colors that spark creativity
React Bits brings motion and character to your interface, one copy-paste component at a time.
A spectrum of colors that spark creativity
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.
animationType | 'rotate' | '3drotate' | 'hover' | 'static' | 'rotate' | Rotate spins the prism in place, 3D rotate tumbles it, hover turns it only toward the cursor. |
timeScale | 0.5 | Speed of the rotation. 0 holds it still. | |
colors | string[] | [] | Custom colors for the light, cycled through the color bands. Leave empty for the original spectrum. |
glow | Brightness of the light. | ||
scale | 3.6 | Size of the prism on screen. Larger values zoom in. | |
height | 3.5 | Height of the prism from its base to its tip. | |
baseWidth | 5.5 | Width of the prism at its base. | |
hueShift | Rotates every color around the color wheel, in degrees. | ||
colorFrequency | How quickly the colors change through the light. Higher values show more bands. | ||
saturation | 1.5 | Color intensity, from 0 (grayscale) to 2. | |
noise | Film grain over the light, from 0 to 1. | ||
offset | { x?: number; y?: number } | { x: 0, y: 0 } | Moves the prism by a number of pixels, x to the right and y down. |
interactive | Tilts the prism toward the cursor in every animation mode. | ||
hoverStrength | 2 | How far the prism turns toward the cursor. | |
inertia | 0.05 | How quickly the prism follows the cursor, from 0.01 (slow and smooth) to 1 (instant). | |
| Fades the light in on mount. | |||
resolution | 0.5 | Fraction of the screen resolution the light is rendered at, from 0.25 to 1. The glow is soft, so 0.5 looks the same as full resolution and runs about four times faster. | |
lightMode | Draws the light as colored ink for light backgrounds. | ||
dpr | auto | Maximum device pixel ratio, capped at 2. | |
| Extra class names for the container. | |||
| Inline styles for the container. |
animationType'rotate' | '3drotate' | 'hover' | 'static'Rotate spins the prism in place, 3D rotate tumbles it, hover turns it only toward the cursor.
'rotate'timeScalenumberSpeed of the rotation. 0 holds it still.
0.5colorsstring[]Custom colors for the light, cycled through the color bands. Leave empty for the original spectrum.
[]glownumberBrightness of the light.
scalenumberSize of the prism on screen. Larger values zoom in.
3.6heightnumberHeight of the prism from its base to its tip.
3.5baseWidthnumberWidth of the prism at its base.
5.5hueShiftnumberRotates every color around the color wheel, in degrees.
colorFrequencynumberHow quickly the colors change through the light. Higher values show more bands.
saturationnumberColor intensity, from 0 (grayscale) to 2.
1.5noisenumberFilm grain over the light, from 0 to 1.
offset{ x?: number; y?: number }Moves the prism by a number of pixels, x to the right and y down.
{ x: 0, y: 0 }interactivebooleanTilts the prism toward the cursor in every animation mode.
hoverStrengthnumberHow far the prism turns toward the cursor.
2inertianumberHow quickly the prism follows the cursor, from 0.01 (slow and smooth) to 1 (instant).
0.05introbooleanFades the light in on mount.
resolutionnumberFraction of the screen resolution the light is rendered at, from 0.25 to 1. The glow is soft, so 0.5 looks the same as full resolution and runs about four times faster.
0.5lightModebooleanDraws the light as colored ink for light backgrounds.
dprnumberMaximum device pixel ratio, capped at 2.
autoExtra class names for the container.
Inline styles for the container.



