crysta1221

Empty

CTAs

About

An empty state placeholder with an icon, title, description and a call-to-action button for lists or inboxes with no content.

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

Code

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

Usage.tsx

import { Inbox } from "lucide-react";

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

export default function Demo() {
  return (
    <div className="flex w-full items-center justify-center p-8">
      <Empty>
        <EmptyHeader>
          <EmptyMedia variant="icon">
            <Inbox />
          </EmptyMedia>
          <EmptyTitle>No messages</EmptyTitle>
          <EmptyDescription>New messages will show up here.</EmptyDescription>
        </EmptyHeader>
        <EmptyContent>
          <Button variant="secondary">Compose</Button>
        </EmptyContent>
      </Empty>
    </div>
  );
}

Dependencies

More by crysta1221

View all
  • Attachment

    Attachment

    20
  • M3 Expressive Button

    M3 Expressive Button

    19
  • Input OTP

    Input OTP

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