Empty
What a list or a page says when there is nothing to show yet: an icon, a title, a line of explanation and, if there is one, the way out. Zero JS.
Slots: the default slot is the explanation; action holds the button or link that gets the reader out.
<Empty icon="ph:tray" title="No messages">
Messages you receive will show up here.
<a slot="action" class="btn" href="/compose">Write one</a>
</Empty>
Props
| Type | Name | Description |
|---|---|---|
| string | title |
|
| string | icon? |
|
| string | class? |