Skip to content

Empty state

Fills empty pages and tables, and says what to do next.

No projects yet

Create your first project to start designing with Atomus.

Empty stateLive · light and dark follow the theme switch

Add the source to a shadcn project

npx shadcn@latest add https://docs.atomus.io/r/empty-state.jsonOpen in v0

Installs the component source, its CSS and the Atomus tokens into components/atomus/. How the registry works

From guidelines/components/empty-state-file-upload.md · Open in Figma: EmptyState

Properties, variants and anatomy of the Figma components. React props use the same names.

Empty / no-results state for tables, lists and pages.

Variants: 2

Property Type / options
Title text
Description text
Actions boolean (on)
Size sm · md
import { EmptyState } from '@stanvision/atomus-react';
<EmptyState
title="No projects yet"
description="Create your first project to start designing with Atomus."
actions={<Button hierarchy="primary">New project</Button>}
/>

Fills an empty page, table or panel and says what to do next.

Full types and defaults are in React API at the end of the page.

  • title (what’s missing), description (one sentence), actions, icon, size sm (panels) · md (pages).

From the Figma guidelines.

Do

  • Explain what will appear here and how to start.
  • Offer one primary action.
  • Use md in pages and cards, sm in narrow panels.

Forbidden

  • Never leave a screen blank.
  • Never blame the user.
  • Never show more than two actions.

Generated from react/src/components by scripts/gen-react-api.mjs — the same tables agents read in guidelines/components/empty-state-file-upload.md.

Use only these props; anything else is not part of the API.

import { EmptyState } from '@stanvision/atomus-react'; — source: react/src/components/EmptyState.tsx

Prop Type Default Description
title ReactNode required Figma: Title
description ReactNode — Figma: Description
icon ReactNode — Featured icon glyph
actions ReactNode — Figma: Actions — usually Outline + Primary buttons
size 'sm' | 'md' 'md' Figma: Size — sm (panels) · md (pages)

Also accepts every native <div> attribute (id, role, onClick …), except title, which is replaced above.