terra vidhal

Freight Load Planner

Component

About

A freight load planner with package selection, weight and floor-space capacity, explicit front, middle and rear placement, animated zone assignment and distribution, axle balance feedback, one-click rebalancing, auto-load and a published plan.

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

Code

How Freight Load Planner is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

/**
 * PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
 */

import {
  FreightLoadPlanner,
  type FreightPackage,
} from "@/components/ui/freight-load-planner";

const PACKAGES: FreightPackage[] = [
  { id: "p1", label: "Pallet — paper stock", weight: 320, volume: 24, stackable: true },
  { id: "p2", label: "Display frames", weight: 180, volume: 18, fragile: true, stackable: false },
  { id: "p3", label: "Small parcel cage", weight: 120, volume: 14, stackable: true },
  { id: "p4", label: "Ceramic planters", weight: 210, volume: 20, fragile: true, stackable: false },
  { id: "p5", label: "Folding tables", weight: 160, volume: 22, stackable: true },
  { id: "p6", label: "Lighting cases", weight: 95, volume: 12, stackable: true },
  { id: "p7", label: "Bulk textile rolls", weight: 260, volume: 26, stackable: true },
  { id: "p8", label: "Archive boxes", weight: 140, volume: 16, stackable: true },
];

export default function FreightLoadPlannerDemo() {
  return (
    <main className="flex min-h-screen w-full items-start justify-center bg-gradient-to-b from-muted/40 via-background to-background px-4 py-8 sm:px-6">
      <FreightLoadPlanner
        maxWeight={1200}
        maxVolume={100}
        packages={PACKAGES}
        title="Evening trailer load"
      />
    </main>
  );
}

Dependencies

More by terra vidhal

View all
  • Project Timeline

    Project Timeline

    30
  • Kanban Board

    Kanban Board

    20
  • Gravity Stars Background

    Gravity Stars Background

    20
  • Booking Calendar

    Booking Calendar

    18
  • Notification Center

    Notification Center

    16
  • Audio Waveform

    Audio Waveform

    16
  • Kpi Counter

    Kpi Counter

    16
  • Topographic Lines

    Topographic Lines

    16

Explore more

Part of PrequelUI Animate — browse the full library on 21st.dev.