Empty State
Communicates that there is no content to show, with a next step.
- Status
- ReadyBuild day 15 of 21
- Code
- In React
- Role
- Display
Usage
This demo is live, and the code below it is the same code, imports included. The component lives in src/ui of this repository and is not published to npm yet.
No transactions yet
Your transactions will appear here.
Pastes as editable layers. Shadows are not exported.
import { Button, EmptyState, type EmptyStateScope } from "@/ui";
const scope: EmptyStateScope = "list";
export default function EmptyStateDemo() {
return (
<EmptyState
scope={scope}
title="No transactions yet"
description="Your transactions will appear here."
action={<Button variant="secondary">Try again</Button>}
/>
);
}Variants and states
Every specimen is the real component from src/ui, held in one state.
No transactions yet
Your transactions will appear here.
No transactions yet
Your transactions will appear here.
No transactions yet
Your transactions will appear here.
No transactions yet
Your transactions will appear here.
No transactions yet
Your transactions will appear here.
No transactions yet
Your transactions will appear here.
No transactions yet
Your transactions will appear here.
No transactions yet
Your transactions will appear here.
No transactions yet
Your transactions will appear here.
No transactions yet
Your transactions will appear here.
No transactions yet
Your transactions will appear here.
No transactions yet
Your transactions will appear here.
Pastes as editable layers. Shadows are not exported.
Props
- title
- string · default none
- Required.
- description
- string · default none
- Up to 280px wide.
- scope
- "search" | "list" | "error" | "custom" · default "list"
- Sets the icon; error uses the danger tone.
- size
- "sm" | "md" | "lg" · default "md"
- Circle 48, 64, 80.
- icon
- ReactNode · default none
- Replaces the scope icon.
- action
- ReactNode · default none
- One action at most.
- showImage
- boolean · default true
Figma to code
Figma properties by their exact names from Naming, and the React prop that carries each one. The table covers the shared properties that bear on this component; the Figma file decides which of them its component exposes. None means there is no prop for it yet.
- 📐 Size
- size
- sm, md, or lg.
- Scope
- scope
- Search, List, Error, Custom.
- Show Image
- showImage
- Boolean.
- Title, Show Description, Description
- title, description
- Same.
- Show Button, Button Value
- action
- Pass a Button.
Accessibility
What the code in src/ui does today, and what it leaves to you.
Keyboard
- Only the action is focusable.
Screen readers
- The title is a heading. The icon is decorative.
What you still need to do
- Say what happened and what to do next. After a failed load, the action should retry.
When to use
Empty tables, empty search results, and first-run experiences.
Do and don't
Do
- Explain why it's empty and what to do next.
- Include a clear primary action when applicable.
Don't
- Leave a blank screen with no explanation.
- Use overly technical language.
Related
4 of 28 other molecules, same role and ready ones first.
- AccordionStacked sections that expand to reveal their content.Ready
- CardA container that groups related content and actions.Ready
- DividerA thin line used to separate content into distinct sections.Ready
- QR Code DisplayA scannable code with its amount, recipient, and expiry.Ready
Status reflects the component tracker snapshot of 29 October 2026.