Empty/empty-actions-

PreviousNext

A empty/empty-actions- example

Docs
shadcnblocksblock

Preview

Loading preview…
code/example/empty/empty-actions-1.tsx
"use client";

import { Plus } from "lucide-react";

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

export const title = "Empty with Single Action";

const Example = () => (
  <Empty>
    <EmptyHeader>
      <EmptyMedia variant="icon">
        <Plus />
      </EmptyMedia>
      <EmptyTitle>No projects yet</EmptyTitle>
      <EmptyDescription>
        Get started by creating your first project.
      </EmptyDescription>
    </EmptyHeader>
    <EmptyContent>
      <Button>
        <Plus />
        Create Project
      </Button>
    </EmptyContent>
  </Empty>
);

export default Example;

Installation

npx shadcn@latest add @shadcnblocks/empty-empty-actions-1

Usage

import { EmptyEmptyActions1 } from "@/components/empty-empty-actions-1"
<EmptyEmptyActions1 />