
Retro dithered waves to enhance your UI
React Bits brings motion and character to your interface, one copy-paste component at a time.

Retro dithered waves to enhance your UI
React Bits brings motion and character to your interface, one copy-paste component at a time.
Retro dithered waves to enhance your UI
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.
waveColor | string | [number, number, number] | [0.5, 0.5, 0.5] | Color of the waves. Accepts any CSS color, or a linear RGB array from 0 to 1. |
backgroundColor | string | [number, number, number] | [0, 0, 0] | Color behind the waves. Use 'transparent' to dither the waves over your own background. |
ditherMode | 'bayer' | 'bayer4' | 'bayer2' | 'halftone' | 'lines' | 'crosshatch' | 'noise' | 'none' | 'bayer' | Pattern used to dither the shades. |
palette | string[] | Two to eight colors from dark to light. Replaces the wave and background colors with an indexed palette. | |
colorNum | 4 | Number of shades per color channel. | |
pixelSize | 2 | Size of each dither pixel, in px. | |
scale | Size of the wave pattern. | ||
waveSpeed | 0.05 | Speed of the wave animation. | |
waveFrequency | 3 | How much finer each layer of detail gets. | |
waveAmplitude | 0.3 | How strongly the finer layers of detail show. | |
contrast | Contrast of the waves before dithering. | ||
brightness | Brightens or darkens the waves. | ||
enableMouseInteraction | Lets the cursor interact with the waves. | ||
mouseEffect | 'erase' | 'reveal' | 'ripple' | 'erase' | Erase darkens the waves under the cursor, reveal lights them up and ripple bends them. |
mouseRadius | Radius of the cursor effect. | ||
mouseStrength | Strength of the cursor effect. | ||
trail | 0.5 | How long the cursor leaves a fading trail, from 0 to 1. | |
clickRipple | Clicking sends a ring through the waves. | ||
| Resolves from chunky pixels to full detail on mount. | |||
disableAnimation | Freezes the wave animation. | ||
dpr | auto | Maximum device pixel ratio, capped at 2. | |
| Extra class names for the container. | |||
| Inline styles for the container. |
waveColorstring | [number, number, number]Color of the waves. Accepts any CSS color, or a linear RGB array from 0 to 1.
[0.5, 0.5, 0.5]backgroundColorstring | [number, number, number]Color behind the waves. Use 'transparent' to dither the waves over your own background.
[0, 0, 0]ditherMode'bayer' | 'bayer4' | 'bayer2' | 'halftone' | 'lines' | 'crosshatch' | 'noise' | 'none'Pattern used to dither the shades.
'bayer'palettestring[]Two to eight colors from dark to light. Replaces the wave and background colors with an indexed palette.
colorNumnumberNumber of shades per color channel.
4pixelSizenumberSize of each dither pixel, in px.
2scalenumberSize of the wave pattern.
waveSpeednumberSpeed of the wave animation.
0.05waveFrequencynumberHow much finer each layer of detail gets.
3waveAmplitudenumberHow strongly the finer layers of detail show.
0.3contrastnumberContrast of the waves before dithering.
brightnessnumberBrightens or darkens the waves.
enableMouseInteractionbooleanLets the cursor interact with the waves.
mouseEffect'erase' | 'reveal' | 'ripple'Erase darkens the waves under the cursor, reveal lights them up and ripple bends them.
'erase'mouseRadiusnumberRadius of the cursor effect.
mouseStrengthnumberStrength of the cursor effect.
trailnumberHow long the cursor leaves a fading trail, from 0 to 1.
0.5clickRipplebooleanClicking sends a ring through the waves.
introbooleanResolves from chunky pixels to full detail on mount.
disableAnimationbooleanFreezes the wave animation.
dprnumberMaximum device pixel ratio, capped at 2.
autoExtra class names for the container.
Inline styles for the container.



