Empty/empty-standard-

PreviousNext

A empty/empty-standard- example

Docs
shadcnblocksblock

Preview

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

import { FileQuestion } from "lucide-react";

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

export const title = "Simple Empty State";

const Example = () => (
  <Empty>
    <EmptyHeader>
      <EmptyMedia variant="icon">
        <FileQuestion />
      </EmptyMedia>
      <EmptyTitle>No items found</EmptyTitle>
    </EmptyHeader>
  </Empty>
);

export default Example;

Installation

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

Usage

import { EmptyEmptyStandard1 } from "@/components/empty-empty-standard-1"
<EmptyEmptyStandard1 />