![]() |
VOOZH | about |
The Spectre Empty states are important as a placeholder when you have an uploading layout. Empty states/blank slates are commonly used as placeholders for first-time use, empty data and error screens.
There are lots of things that you can include in an empty state component like icons, messages, buttons, a combination of any component.
Spectre Empty states Class:
Syntax:
<div class="empty"> <div class="empty-icon"> <i class="..."></i> </div> <p class="empty-title">....</p> <p class="empty-subtitle">...</p> <div class="empty-action"> <button class="...">..</button> </div> </div>
Below example illustrate Spectre Empty states:
Example 1:
Output:
Example 2:
Output:
Reference: https://picturepan2.github.io/spectre/components/empty.html