About
A full-width, full-height placeholder panel with a large icon, title, and optional subtitle, description, and action button, used to show an empty or error state in a page or section.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Empty & Error State to your project and fits it to your theme.
Code
How Empty & Error State is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { State } from "@/components/ui/state";
export default function StateErrorWithDetailsDemo() {
return (
<div style={{ height: 320 }}>
<State.Error
title="Something went wrong"
subtitle="Failed to load data"
description="Please check your connection and try again."
action={{ label: "Retry", onClick: () => {} }}
/>
</div>
);
}








