Common Components
Empty State
A friendly placeholder shown when a list or page has no content โ with icon, title, description, and optional CTA.
Quick Preview
๐ญ
No messages yet
When you receive messages, they will appear here.
Installation
// Copy EmptyState.tsx to your components/common/ folder// src/components/common/EmptyState.tsx
Usage
import { EmptyState } from '@/components/common/EmptyState'<EmptyStateicon="๐"title="No results found"description="Try adjusting your search or filter to find what you're looking for."action={<Button variant="outline">Clear filters</Button>}/>
Examples
Common Scenarios
๐
No results found
Try a different search term.
๐
Your cart is empty
Add items to get started.
๐
All caught up!
No new notifications.
Sizes
๐
Small empty state
Size sm
๐
Medium empty state
Size md (default)
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
title* | string | - | Primary heading text |
icon | React.ReactNode | - | Icon or emoji displayed above the title |
description | string | - | Supporting body text |
action | React.ReactNode | - | Optional CTA button or link |
size | "sm" | "md" | "lg" | "md" | Controls spacing and text size |