Empty
Explain why no data is available and what to do next.
Usage guide
#After a query or search, explain why there is no data and what to do next. Use Skeleton or Spinner while loading.
Explain why it is empty
Use
textto distinguish between no data and no matching search results.Offer a next action
Put actions such as Create or Reset filters in the default slot.
Contextual supporting content
Replace the icon with the
iconslot. Ifdescriptionisfalse, provide alternative accessible guidance that communicates the state.
Examples
#Feature examples
#Choose a feature from 2 topics. Explore property settings, method calls, event results, and slot layouts through live examples and code.
No matching features.
API reference
#Hover over a name or focus it with the keyboard to see the code. On touch screens, tap the name.
<sy-empty>
Properties
| Attribute / Property | Type | Default | Description |
|---|---|---|---|
string | 'No Data' | Message shown in the empty state. | |
string | '' | Image or SVG URL replacing the default icon. The icon slot takes precedence when present. | |
string | boolean | true | true shows the text; false hides it. Legacy string text values are also accepted. Pass objects and arrays as JavaScript properties. |
Slots
| Slot | Description |
|---|---|
| Content displayed in the icon area. | |
| Component body or child items. |