eQuantic.UIeQuantic.UI
Docs
Playground
GitHub
DocsSurfaces & display
EmptyState
View source
1 min read
What a collection shows when it has nothing in it: a glyph, a title, a sentence, and the action that fixes it. Skeleton ships in the same file.
1
using eQuantic.UI.Components;
DEFAULT
No resultsNothing matched that query.
icon + title + body + action
SKELETON SHAPES
Text
Circle
Rect
Usage
1
2
3
4
5
6
7
new EmptyState
{
Icon = Icons.Receipt,
Title = "No invoices yet",
Body = "Invoices you create will appear here.",
Action = new Button("New invoice", Variant.Primary, onPressed: NewInvoice),
}
API
Prop
Type
Default
Description
Icon
Icons
A calm glyph, not an illustration.
Title
string
What is empty, in the user's words.
Body
string?
null
One sentence on how it fills up.
Action
Button?
null
The single action that resolves the emptiness.
SecondaryAction
Button?
null
An optional alternative.
Skeleton.Shape
SkeletonShape
Text, Circle or Rect — match the real content's silhouette.
Skeleton.Width
float
0
Placeholder width; 0 fills.
Skeleton.Height
float
0
Placeholder height.
States
State
Rendering
Empty
The default
Filtered-empty
Different copy: nothing matches, offer to clear the filter
Loading
Use Skeleton at the real content's size
Accessibility
The title is the region's heading; the action is a normal focus stop. Skeletons are hidden from readers — announce "loading" once for the region.
When to use
First run, cleared lists, no-results.
Avoid
Blaming copy, or a dead end with no action.
NOTEEvery dimension resolves through Sizing.*(SizeVariant) and the token scales — never a literal. Source: src/eQuantic.UI.Components/EmptyState.cs.