Empty/empty-standard-

PreviousNext

A empty/empty-standard- example

Docs
shadcnblocksblock

Preview

Loading preview…
code/example/empty/empty-standard-2.tsx
"use client";

import { Inbox } from "lucide-react";

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

export const title = "Empty with Description";

const Example = () => (
  <Empty>
    <EmptyHeader>
      <EmptyMedia variant="icon">
        <Inbox />
      </EmptyMedia>
      <EmptyTitle>Nothing here yet</EmptyTitle>
      <EmptyDescription>
        Get started by creating your first item.
      </EmptyDescription>
    </EmptyHeader>
  </Empty>
);

export default Example;

Installation

npx shadcn@latest add @shadcnblocks/empty-empty-standard-2

Usage

import { EmptyEmptyStandard2 } from "@/components/empty-empty-standard-2"
<EmptyEmptyStandard2 />