Empty/empty-search-

PreviousNext

A empty/empty-search- example

Docs
shadcnblocksblock

Preview

Loading preview…
code/example/empty/empty-search-3.tsx
"use client";

import { SearchX } from "lucide-react";

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

export const title = "No Matches Found";

const Example = () => (
  <Empty>
    <EmptyHeader>
      <EmptyMedia variant="icon">
        <SearchX />
      </EmptyMedia>
      <EmptyTitle>No matches found for "query"</EmptyTitle>
      <EmptyDescription>
        Check your spelling or try searching for something else.
      </EmptyDescription>
    </EmptyHeader>
    <EmptyContent>
      <Button variant="ghost">View All Items</Button>
    </EmptyContent>
  </Empty>
);

export default Example;

Installation

npx shadcn@latest add @shadcnblocks/empty-empty-search-3

Usage

import { EmptyEmptySearch3 } from "@/components/empty-empty-search-3"
<EmptyEmptySearch3 />