Server Error State

500 error state card with a danger outline, a short explanation, and Retry and Copy request id buttons so users can recover or reach support with context.

src/registry/ui/server-error-state.tsx/r/server-error-state.json

Installation#

bash
npx shadcn@latest add @minidev/server-error-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/server-error-state.json

Usage#

tsx
import { ServerErrorState } from "@/components/ui/server-error-state"

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

API reference#

ServerErrorState props
PropTypeDefault
classNamestring-

Dependencies#

npm

React only

Built from

All alerts, toasts and empty states

Learn more