Skip to main content

Basic and with actions

An icon in a circle, a title that says what is empty, and one sentence about what to do. The icon is decorative (aria-hidden). Add the main action first and a secondary one after it; the title is a heading so the empty area can be found by heading navigation, and its level follows the section it sits in.

No notifications

When something needs your attention, it will show up here.

No products yet

Add your first product to start selling.

Contexts

The same part says different things. First use: invite the person to create something. No results: name the search and offer a way out; it is a role="status" because it appears after the person acts. Error: use variant="danger" and role="alert" so it is announced at once, and offer a retry. Do not reuse one wording for all three.

No orders yet

Orders appear here as soon as a customer checks out.

No results for “ssd drive”

Check the spelling or try a broader search.

Sizes

size="small" lives inside a card or a side panel: smaller icon, less padding, a text-sized title and usually no action. size="page" fills a whole view when the view has nothing else: a large icon, an h2 title and large buttons. Start from the page size and shrink it only when the space is shared.

Recent activity

Nothing yet

Your activity will appear here.

Create your first project

Projects keep your files, tasks and people in one place. It takes a minute to set one up.

With illustration

Swap the icon for a simple inline SVG when the view deserves more presence. Draw it with theme colours through classes (fill-primary-100 stroke-primary-600 and the dark pairs) so it follows dark mode, and mark it aria-hidden="true": the title carries the meaning.

No messages

Start a conversation and it will show up here.

Options reference

Empty State is plain HTML with Tailwind classes and no script.

Part Value Description
Container flex flex-col items-center px-6 py-10 text-center Wrap in a dashed box (border-dashed) when it replaces a list or a table inside a page.
Icon size-12 circle, text-xl icon Always aria-hidden="true". Sizes: size-9 compact, size-12 default, size-16 page.
Title h2 or h3 The heading level follows the section. Say what is empty, not “Oops”.
Text max-w-sm text-sm One sentence about the next step.
Actions buttons or links The main action first. Omit them when the person cannot act.
role status or alert Only when it appears after an action: status for no results, alert for an error. A first-use empty state needs no role.
Tone dominant, primary, danger The colour of the icon circle. Use danger only for errors.