
Don't touch them, they are pretty sharp!
React Bits brings motion and character to your interface, one copy-paste component at a time.

Don't touch them, they are pretty sharp!
React Bits brings motion and character to your interface, one copy-paste component at a time.
Don't touch them, they are pretty sharp!
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.
shardColor | '#896ABD' | Main color of the shards. | |
accentColor | '#A855F7' | Color of the light the shards catch, their rim light and the markers. | |
backgroundColor | 'transparent' | Fills the canvas behind the shards. Transparent lets the page show through. | |
lightMode | Draws the shards as soft tinted glass for light backgrounds. | ||
placement | 'full' | 'left' | 'right' | 'center' | 'full' | Where the ribbons flow: across the whole view, down one side, or in a ring around the center. |
material | 'glass' | 'chrome' | 'glass' | Surface of the shards: thick glass that catches light along its edges, or polished chrome. |
markers | 'plus' | 'dots' | 'none' | 'plus' | Survey markers floating at each depth. A few blink, and the one nearest the cursor gets a target frame. |
count | 1300 | Number of shards across all the ribbons. | |
shardSize | Size of the shards. | ||
spread | Width of the ribbons. | ||
twist | How much the ribbons twist along their length. | ||
billow | How much the ribbons ripple like silk. | ||
speed | How fast the shards flow. | ||
scale | Zoom of the whole scene. | ||
depthOfField | 0.75 | How soft the farther ribbons get. 0 keeps everything sharp. | |
glow | 0.35 | Soft bloom around the brightest glints. | |
grain | 0.06 | Film grain on the shards. 0 turns it off. | |
vignette | 0.3 | Fades everything out toward the edges of the frame. 0 runs edge to edge. | |
| The ribbons draw in from the left, front to back, on mount. | |||
mouseInteraction | The cursor parts the shards it passes through and leans the camera toward it. | ||
mouseStrength | 0.6 | How strongly the cursor parts the shards. | |
parallax | 0.5 | How far the camera leans toward the cursor. | |
pulseOnClick | Clicking sends a ring of light out through every depth, flipping the shards it passes. | ||
holdToGather | Pressing and holding gathers nearby shards into a swirl that scatters back on release. | ||
paused | Freezes the flow. | ||
dpr | 2 | Maximum device pixel ratio of the canvas. | |
onError | (error: Error) => void | Called if WebGPU is unavailable or fails, so you can show a fallback. | |
| Extra class names for the container. | |||
| Inline styles for the container. |
shardColorstringMain color of the shards.
'#896ABD'accentColorstringColor of the light the shards catch, their rim light and the markers.
'#A855F7'backgroundColorstringFills the canvas behind the shards. Transparent lets the page show through.
'transparent'lightModebooleanDraws the shards as soft tinted glass for light backgrounds.
placement'full' | 'left' | 'right' | 'center'Where the ribbons flow: across the whole view, down one side, or in a ring around the center.
'full'material'glass' | 'chrome'Surface of the shards: thick glass that catches light along its edges, or polished chrome.
'glass'markers'plus' | 'dots' | 'none'Survey markers floating at each depth. A few blink, and the one nearest the cursor gets a target frame.
'plus'countnumberNumber of shards across all the ribbons.
1300shardSizenumberSize of the shards.
spreadnumberWidth of the ribbons.
twistnumberHow much the ribbons twist along their length.
billownumberHow much the ribbons ripple like silk.
speednumberHow fast the shards flow.
scalenumberZoom of the whole scene.
depthOfFieldnumberHow soft the farther ribbons get. 0 keeps everything sharp.
0.75glownumberSoft bloom around the brightest glints.
0.35grainnumberFilm grain on the shards. 0 turns it off.
0.06vignettenumberFades everything out toward the edges of the frame. 0 runs edge to edge.
0.3introbooleanThe ribbons draw in from the left, front to back, on mount.
mouseInteractionbooleanThe cursor parts the shards it passes through and leans the camera toward it.
mouseStrengthnumberHow strongly the cursor parts the shards.
0.6parallaxnumberHow far the camera leans toward the cursor.
0.5pulseOnClickbooleanClicking sends a ring of light out through every depth, flipping the shards it passes.
holdToGatherbooleanPressing and holding gathers nearby shards into a swirl that scatters back on release.
pausedbooleanFreezes the flow.
dprnumberMaximum device pixel ratio of the canvas.
2onError(error: Error) => voidCalled if WebGPU is unavailable or fails, so you can show a fallback.
Extra class names for the container.
Inline styles for the container.
Dependencies
1 required package
npm install vgpu


