API and Development
EmptyState is used to display a message when there is no content to show, providing clear guidance on what users can do next or why content is unavailable. It provides a flexible interface for displaying empty content states with optional icons, illustrations, and actions. Built on FlexBox layout, it ensures consistent spacing and alignment while supporting various visual configurations for different use cases.
| Name | Type | Default | Description |
|---|---|---|---|
actionsSlot | ReactNode | — | Custom actions region. Replaces primaryAction when provided. |
className | string | — | Classes appended after generated layout classes. |
description | LocalizedMessage | DisplayValue | — | Secondary copy below the title. Copy or runtime data (for example an error message). |
icon | Glyph | — | Glyph shown in the icon well above the title at IconSize.Medium (ES-2). |
id | string | — | Element id. |
primaryAction | ReactNode | — | Primary action below the description. Ignored when actionsSlot is set. |
ref | Ref<HTMLDivElement> | — | Ref to the root layout host. |
title | LocalizedMessage | — | Primary heading. Omit to show only a description. |