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>
);
}








