f0rextasy

Sample Data Loader

Component

About

A one-click button that toggles between an empty and a seeded demo-data state, useful for showcasing empty/loaded UI states without a backend.

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

Code

How Sample Data Loader is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { SampleData } from "@/components/ui/sample-data";

export default function SampleDataDemo() {
  return (
    <div className="flex min-h-[320px] w-full items-center justify-center bg-background p-8">
      <SampleData />
    </div>
  );
}

More by f0rextasy

View all
  • Newsletter Signup Card

    Newsletter Signup Card

    6
  • Stamp Seal

    Stamp Seal

    6
  • Network Graph

    Network Graph

    5
  • Board Checklist

    Board Checklist

    4
  • Time Input

    Time Input

    3
  • Data Table

    Data Table

    3
  • Empty State Card

    Empty State Card

    2
  • Running Order Timeline

    Running Order Timeline

    2