- Docs
- Components
- Backgrounds
- Glass & Chrome
- Glass Tiles
A shimmering background of colorful glass tiles
| Name | Type | Default | Description |
|---|---|---|---|
width | string | number | "100%" | Container width |
height | string | number | "100%" | Container height |
className | string | "" | Additional CSS classes for styling |
children | ReactNode | undefined | Content rendered above the effect |
speed | number | 1 | Animation speed multiplier (0–3) |
tileDensity | number | 4 | Tile lattice density across the surface (1–16) |
rippleLayers | number | 6 | Number of directional ripple layers stacked through the tile pole (1–8) |
warpStrength | number | 0.33 | Per-tile inverse-distance warp strength (0–0.6) |
bandSharpness | number | 3 | Sharpness of the bright band peaks; higher is thinner, hotter ribbons (0.5–10) |
chromaticSpread | number | 0 | Per-channel chromatic separation along the gradient axis (0–1) |
colorA | string | "#1E00FF" | First gradient stop in hex format (the deeper color) |
colorB | string | "#D765E6" | Second gradient stop in hex format (the brighter color) |
backgroundColor | string | "#FFFFFF" | Background fill where the field is fully dark in hex format |
opacity | number | 1 | Master alpha (0–1) |
dpr | number | 1.5 | Maximum device pixel ratio (caps GPU work) (1–3) |
widthstring | numberContainer width
"100%"heightstring | numberContainer height
"100%"classNamestringAdditional CSS classes for styling
""childrenReactNodeContent rendered above the effect
undefinedspeednumberAnimation speed multiplier (0–3)
1tileDensitynumberTile lattice density across the surface (1–16)
4rippleLayersnumberNumber of directional ripple layers stacked through the tile pole (1–8)
6warpStrengthnumberPer-tile inverse-distance warp strength (0–0.6)
0.33bandSharpnessnumberSharpness of the bright band peaks; higher is thinner, hotter ribbons (0.5–10)
3chromaticSpreadnumberPer-channel chromatic separation along the gradient axis (0–1)
0colorAstringFirst gradient stop in hex format (the deeper color)
"#1E00FF"colorBstringSecond gradient stop in hex format (the brighter color)
"#D765E6"backgroundColorstringBackground fill where the field is fully dark in hex format
"#FFFFFF"opacitynumberMaster alpha (0–1)
1dprnumberMaximum device pixel ratio (caps GPU work) (1–3)
1.5