timmikeladze

Debris Field

Component 1

About

An animated SVG scene of a plated sphere breaking apart into hull fragments that fly outward from a rupture point, with depth-sorted rendering, optional trajectory trails, and a draggable/keyboard scrub control for the scatter amount.

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

Code

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

Usage.tsx

"use client";

import * as React from "react";

import { DebrisField } from "@/components/ui/debris-field";

export default function DebrisFieldInteractiveDemo() {
  const [spread, setSpread] = React.useState(0.3);

  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-background">
      <DebrisField
        size="xl"
        spread={spread}
        interactive
        onSpreadChange={setSpread}
        showTrails
      />
    </div>
  );
}

More by timmikeladze

View all
  • Puzzle Cube

    Puzzle Cube

    7
  • Pumpjack

    Pumpjack

    2
  • Wellhead Tree

    Wellhead Tree

    1
  • Robot Arm

    Robot Arm

    1
  • Robot Stage

    Robot Stage

  • Airliner

    Airliner

  • Rod Pump

    Rod Pump

  • Construct Ring

    Construct Ring