Syed

Synapse Card

Component

About

Minimal Swiss-grid monochrome card featuring an interactive Canvas2D dot-matrix network with elastic spoke morphing, adjustable dot density, spotlight spread, and radial connection reach.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Synapse Card to your project and fits it to your theme.

Code

How Synapse Card is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import React from "react";
import {
  SynapseCard,
  type SynapseCardTheme,
} from "@/components/ui/synapse-card";

const settings = {
  title: "SYNAPSE",
  theme: "auto",
  autoPlay: true,
  speed: 1,
  dotDensity: 10,
  dotReach: 3.8,
  lineReach: 2.5,
  soundEnabled: false,
};

const VALID_THEMES: ReadonlyArray<SynapseCardTheme> = [
  "auto",
  "dark",
  "light",
];

function safeNumber(value: unknown, min: number, max: number, fallback: number): number {
  if (typeof value !== "number" || !Number.isFinite(value)) return fallback;
  return Math.min(Math.max(value, min), max);
}

export default function SynapseCardDemo(
  props: Partial<typeof settings> = {}
) {
  const config = { ...settings, ...props };

  const theme: SynapseCardTheme = VALID_THEMES.includes(
    config.theme as SynapseCardTheme
  )
    ? (config.theme as SynapseCardTheme)
    : "auto";

  return (
    <div className="w-full min-h-[400px] flex items-center justify-center p-4 sm:p-8">
      <SynapseCard
        title={typeof config.title === "string" ? config.title : settings.title}
        theme={theme}
        autoPlay={Boolean(config.autoPlay)}
        speed={safeNumber(config.speed, 0.2, 3, 1)}
        dotDensity={safeNumber(config.dotDensity, 6, 18, 10)}
        dotReach={safeNumber(config.dotReach, 2, 8, 3.8)}
        lineReach={safeNumber(config.lineReach, 1.6, 5, 2.5)}
        soundEnabled={Boolean(config.soundEnabled)}
      />
    </div>
  );
}

export { SynapseCardDemo as Demo, SynapseCardDemo as demo };

More by Syed

View all
  • Animated Beam Integration

    Animated Beam Integration

    142
  • Emotion Wheel v2

    Emotion Wheel v2

    116
  • SpatialCardCarousel

    SpatialCardCarousel

    107
  • Agency Bento Grid

    Agency Bento Grid

    91
  • Morphing Island Navbar

    Morphing Island Navbar

    85
  • Unlimited Design Hero

    Unlimited Design Hero

    71
  • Animated Tree View

    Animated Tree View

    64
  • Interactive Eye Tracker

    Interactive Eye Tracker

    62