Empty/empty-search-

PreviousNext

A empty/empty-search- example

Docs
shadcnblocksblock

Preview

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

import { Search } from "lucide-react";

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

export const title = "Try Different Keywords";

const Example = () => (
  <Empty>
    <EmptyHeader>
      <EmptyMedia>
        <Search className="size-8 text-muted-foreground" />
      </EmptyMedia>
      <EmptyTitle>No results for your search</EmptyTitle>
      <EmptyDescription>
        Try using different keywords or check the spelling. You can also browse
        our categories to find what you're looking for.
      </EmptyDescription>
    </EmptyHeader>
  </Empty>
);

export default Example;

Installation

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

Usage

import { EmptyEmptySearch4 } from "@/components/empty-empty-search-4"
<EmptyEmptySearch4 />