FX · Backgrounds

A grid of tiles lighting up in a diagonal wave.

Make some waves

Terminal
npx shadcn@latest add https://www.rad-ui.com/r/tile-wave.json
React
import TileWave from "@/components/fx/tile-wave" <TileWave className="px-8 py-24"> <h2>Your content</h2> </TileWave>
  • The effect layer is aria-hidden and ignores pointer events; only children are exposed.
  • Tiles pulse gently; there are no rapid flashes.
  • Pauses offscreen; `paused` stops it on demand (wire it to a visible control if it runs behind reading content).
  • prefers-reduced-motion: reduce (or data-rad-fx-motion="reduce" on an ancestor) shows the grid unlit and still.
PropTypeDefaultDescription
color
stringviolet, 50%

Tile colour.

columns
number18

Columns.

rows
number10

Rows.

speed
number3.2

Seconds per wave.

paused
booleanfalse

Stop the animation. It also pauses offscreen.

...props
ComponentProps<'div'>—

Passed to the root div; children render above.