Modus UI

Wire Ledger

Web (React)

Drifting points joined by hairlines when they come within reach, inked in your theme.

Points drift and bounce inside the frame and are joined by fine ink hairlines whenever they come within reach of each other, drawn from the theme's foreground and primary on the page ground. It fills its positioned parent, re-reads the theme when the mode or palette changes, pauses when off screen and stays still when the user prefers reduced motion.

Modus / Wire Ledger

Installation

CLI

npx @modus-ui/cli add wire-ledger

Manual

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

Usage

tsx
import { WireLedger } from "@/components/ui/wire-ledger";

export default function Example() {
  return (
    <div className="relative h-[500px] w-full overflow-hidden">
      <WireLedger />
    </div>
  );
}

Props

PropTypeDefaultDescription
speednumber1Animation speed multiplier (0–3).
sizenumber1Stroke / scale multiplier.
lengthnumber1Length / reach multiplier (0.35–2.5).
densitynumber1Point count multiplier (0.25–2.5).
opacitynumber1Opacity of the effect layer (0.05–1).
huenumber0Hue rotation in degrees applied to the final frame.
saturationnumber1Saturation multiplier applied to the final frame.
brightnessnumber1Brightness multiplier applied to the final frame.
backgroundColorstringhsl(var(--background))Colour behind the canvas, any CSS colour.

Comments

  • No comments yet.