Modus UI

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.

Modus / Signal Tiles

Installation

CLI

npx @modus-ui/cli add signal-tiles

Manual

  1. Copy the code from the component tab.
  2. Create a file at components/ui/signal-tiles.tsx.
  3. Paste the code.

Usage

tsx
import { SignalTiles } from "@/components/ui/signal-tiles";

export default function Example() {
  return (
    <div className="relative h-[500px] w-full overflow-hidden">
      <SignalTiles />
      <div className="relative z-10 p-8">
        <h1>Content over the background</h1>
      </div>
    </div>
  );
}

Props

PropTypeDefaultDescription
speednumber1Animation speed multiplier.
sizenumber28Tile size in pixels.
gapnumber6Gap between tiles in pixels.
opacitynumber1Canvas opacity.
huenumber0Hue rotation in degrees.
saturationnumber1Saturation multiplier.
brightnessnumber1Brightness multiplier.
colorstringtheme tokensSingle CSS colour for every tile.
backgroundColorstringtheme --backgroundBackground colour.

Comments

  • No comments yet.