Signal Tiles
Web (React)
Rounded tiles that swell in waves rolling across the frame from one corner, crested in the theme accent.
A field of rounded tiles that swell and shrink as waves roll in from the lower-left corner. Wave shoulders are drawn in --muted-foreground, crests in --primary, on the theme --background, so it reads as ink on paper in light mode and follows palette changes live. It fills its positioned parent, pauses when off screen and renders a still frame when the user prefers reduced motion.
Installation
CLI
npx @modus-ui/cli add signal-tilesManual
- Copy the code from the component tab.
- Create a file at
components/ui/signal-tiles.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
speed | number | 1 | Animation speed multiplier. |
size | number | 28 | Tile size in pixels. |
gap | number | 6 | Gap between tiles in pixels. |
opacity | number | 1 | Canvas opacity. |
hue | number | 0 | Hue rotation in degrees. |
saturation | number | 1 | Saturation multiplier. |
brightness | number | 1 | Brightness multiplier. |
color | string | theme tokens | Single CSS colour for every tile. |
backgroundColor | string | theme --background | Background colour. |
Comments