miladjoodi

Empty State

CTAs

About

A placeholder layout for showing when there is no data to display, with an icon, title, description and optional action buttons.

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

Code

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

Usage.tsx

import { Button } from "@/components/ui/button";
import {
  Empty,
  EmptyContent,
  EmptyDescription,
  EmptyHeader,
  EmptyMedia,
  EmptyTitle,
} from "@/components/ui/empty";
import { FolderOpen, Plus } from "lucide-react";

export default function EmptyWithActionDemo() {
  return (
    <Empty className="border">
      <EmptyHeader>
        <EmptyMedia variant="icon">
          <FolderOpen className="size-5" />
        </EmptyMedia>
        <EmptyTitle>هیچ فایلی یافت نشد</EmptyTitle>
        <EmptyDescription>
          هنوز فایلی آپلود نکرده‌اید. اولین فایل خود را بارگذاری کنید.
        </EmptyDescription>
      </EmptyHeader>
      <EmptyContent>
        <Button>
          <Plus className="size-4 me-2" />
          آپلود فایل
        </Button>
      </EmptyContent>
    </Empty>
  );
}

Dependencies

More by miladjoodi

View all
  • Image Diff Slider

    Image Diff Slider

    32
  • Signature Pad

    Signature Pad

  • Hover Card

    Hover Card

  • File Upload

    File Upload

  • Card

    Card

  • Drag Scroll

    Drag Scroll

  • Native Select

    Native Select

  • Context Menu

    Context Menu

More in CTAs

View all
  • Call to Action 01

    Call to Action 01

    60
  • Hills Landscape Footer with Call to Action

    Hills Landscape Footer with Call to Action

    253
  • Call to action

    Call to action

    179
  • CTA 3

    CTA 3

    416
  • Responsive Hero Banner

    Responsive Hero Banner

    2.2K
  • call to action

    call to action

    36
  • Call to Action

    Call to Action

    6
  • Hero

    Hero

    1.3K