alexisroe

Empty & Error State

Component

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 StateErrorDemo() {
  return (
    <div style={{ height: 320 }}>
      <State.Error title="Something went wrong" />
    </div>
  );
}

More by alexisroe

View all
  • Log

    Log

    8
  • Notification

    Notification

    2
  • Number Stepper

    Number Stepper

    2
  • Segmented Control

    Segmented Control

    2
  • Chip

    Chip

    2
  • Checkbox

    Checkbox

    1
  • E-Ink Code

    E-Ink Code

  • QR Code

    QR Code