miladjoodi

Empty State

Component

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 {
  Empty,
  EmptyDescription,
  EmptyHeader,
  EmptyMedia,
  EmptyTitle,
} from "@/components/ui/empty";
import { Inbox } from "lucide-react";

export default function EmptyDemo() {
  return (
    <Empty className="border">
      <EmptyHeader>
        <EmptyMedia variant="icon">
          <Inbox className="size-5" />
        </EmptyMedia>
        <EmptyTitle>هیچ پیامی وجود ندارد</EmptyTitle>
        <EmptyDescription>
          صندوق ورودی شما خالی است. پیام‌های جدید اینجا نمایش داده می‌شوند.
        </EmptyDescription>
      </EmptyHeader>
    </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