Empty State
Placeholder for empty lists or search results.
<arc-empty-state>Overview
EmptyState fills a list, table, search result or dashboard that has nothing to show, and points to a next step. It stacks an icon slot, a heading, a description and an actions slot for buttons, centered in a box with a dashed border on the raised surface color.
The icon slot takes an SVG, an icon or an emoji, shown at 40px in --text-ghost and hidden from screen readers. The heading renders as an <h3>, and the description is capped at 360px wide. Both are left out when they're empty. The icon wrapper always renders, so its --space-lg bottom margin stays even with no icon.
It's quiet by default. Set announce to make it a polite live region (role="status") when the empty state answers something the user just did, such as a search with no results. Leave it off for a list that's empty on page load, since a live region reads out everything that changes inside it.
Guidelines
Do
- Give it at least one action, so people know what to do next
- Pick an icon that hints at what's missing, such as a search or folder icon
- Write a specific heading, such as "No results found", not "Empty"
- Use the description to say why it's empty or how to fill it
Don't
- Don't use it as a general card. It's for places with no content
- Don't use more than two action buttons
- Don't show it while data is loading. Use a skeleton until you know the result is empty
Features
- The `actions` slot lays out several buttons in a row
- CSS parts: `container`, `icon`, `heading`, `description`, `actions`
Preview
No projects yet
Projects you create will show up here.
Usage
<arc-empty-state heading="No results found" description="Try adjusting your search.">
</arc-empty-state>import { EmptyState } from '@arclux/arc-ui-react';
export default function Example() {
return (
<EmptyState heading="No results found" description="Try adjusting your search.">
</EmptyState>
);
}<script setup>
import { EmptyState } from '@arclux/arc-ui-vue';
</script>
<template>
<EmptyState heading="No results found" description="Try adjusting your search.">
</EmptyState>
</template><script>
import { EmptyState } from '@arclux/arc-ui-svelte';
</script>
<EmptyState heading="No results found" description="Try adjusting your search.">
</EmptyState>import { Component } from '@angular/core';
import { EmptyState } from '@arclux/arc-ui-angular';
@Component({
imports: [EmptyState],
template: `
<arc-empty-state heading="No results found" description="Try adjusting your search.">
</arc-empty-state>
`,
})
export class MyComponent {}import { EmptyState } from '@arclux/arc-ui-solid';
export default function Example() {
return (
<EmptyState heading="No results found" description="Try adjusting your search.">
</EmptyState>
);
}import { EmptyState } from '@arclux/arc-ui-preact';
export default function Example() {
return (
<EmptyState heading="No results found" description="Try adjusting your search.">
</EmptyState>
);
}<!-- Auto-generated by @arclux/prism — do not edit manually -->
<!-- arc-empty-state — requires empty-state.css + base.css (or arc-ui.css) -->
<div class="arc-empty-state">
<div class="empty" role="status">
<div class="empty__icon" aria-hidden="true">
</div>
Heading
Description text goes here
<div class="empty__actions">
</div>
</div>
</div><!-- Auto-generated by @arclux/prism — do not edit manually -->
<!-- arc-empty-state — self-contained, no external CSS needed -->
<div class="arc-empty-state" style="display: block">
<div style="display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 40px; border: 1px dashed rgb(34, 34, 41); border-radius: 14px; background: rgb(13, 13, 18)" role="status">
<div style="margin-bottom: 24px; color: rgb(107, 107, 128); font-size: 40px" aria-hidden="true">
</div>
Heading
Description text goes here
<div style="display: flex; gap: 8px">
</div>
</div>
</div>API
headingstring''- Main heading text displayed below the icon
descriptionstring''- Supporting text displayed below the heading, max-width 360px
announcebooleanfalse- Makes the empty state a polite live region (
role="status"), so a screen reader reads it when it appears, as for "No results" after a search the user just ran. Off by default: an empty list on page load is not news, and a live region reads out everything that changes inside it.
See also
- ButtonAction button with three variants for action hierarchy and prefix and suffix slots for icons. For links, slot a real anchor, which works before JavaScript loads.
- IconRenders an SVG icon by name from the Phosphor or Lucide library, or from icons you register yourself.
- CTA BannerA centered block that ends a landing page with a gradient headline and one or two buttons.