Empty Search

No results state for search that echoes the query in the title and suggests trying another query or clearing filters. Built on the empty state component.

src/registry/ui/empty-search.tsx/r/empty-search.json

Installation#

bash
npx shadcn@latest add @minidev/empty-search

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/empty-search.json

Usage#

tsx
import { EmptySearch } from "@/components/ui/empty-search"

export function Example() {
  return <EmptySearch />
}

API reference#

EmptySearch props
PropTypeDefault
querystring-
classNamestring-

Dependencies#

npm

React only

Built from

All alerts, toasts and empty states

Learn more