Not Found State

A 404 state with the error code, a Page not found heading, a short explanation and Go home and Open gallery buttons, centered in a card. Built in React.

src/registry/ui/not-found-state.tsx/r/not-found-state.json

Installation#

bash
npx shadcn@latest add @minidev/not-found-state

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/not-found-state.json

Usage#

tsx
import { NotFoundState } from "@/components/ui/not-found-state"

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

API reference#

NotFoundState props
PropTypeDefault
classNamestring-

Dependencies#

npm

React only

Built from

All alerts, toasts and empty states

Learn more