f0rextasy

Train Departure Board

Component 1

About

A mechanical flap-style departure board that lists scheduled times, destinations, gates and live status for a ticket/transit themed UI.

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

Code

How Train Departure Board is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import TrainDepartureBoard from "@/components/ui/train-departure-board";

export default function TrainDepartureBoardCustomDemo() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-background p-6 text-foreground">
      <TrainDepartureBoard
        className="max-w-md"
        title="PLATFORM 4"
        rows={[
          {
            time: "08:12",
            destination: "Harbor Line",
            gate: "P4",
            status: "ON TIME",
          },
          {
            time: "08:27",
            destination: "Summit Express",
            gate: "P2",
            status: "CANCELLED",
          },
          {
            time: "08:45",
            destination: "Riverside Local",
            gate: "P1",
            status: "BOARDING",
          },
          {
            time: "09:03",
            destination: "Valley Shuttle",
            gate: "P3",
            status: "DELAYED",
          },
        ]}
      />
    </div>
  );
}

More by f0rextasy

View all
  • Newsletter Signup Card

    Newsletter Signup Card

    10
  • Stamp Seal

    Stamp Seal

    7
  • Network Graph

    Network Graph

    7
  • Board Checklist

    Board Checklist

    5
  • Empty State Card

    Empty State Card

    3
  • Running Order Timeline

    Running Order Timeline

    3
  • Invite Modal

    Invite Modal

    3
  • Time Input

    Time Input

    3