Components
BaseEmptyState
What a view shows when it has nothing yet or a search found nothing.
components/ui/BaseEmptyState.vue
View in the demo
Example
No projects yet
Create your first project and it will show up here.
Small
Inside panels, tables and menus use size="small": a 40px tile, a smaller title and less padding.
No projects yet
Create your first project and it will show up here.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
titlerequired | string | — | What is empty, in plain words. |
text | string | — | What to do next. |
icon | string | — | The icon, shown in a tonal tile. |
color | string | "on-surface" | The colour of the icon tile. Neutral by default so the action keeps the focus. |
title-tag | string | "h2" | The heading element. |
size | "default" | "small" | "default" | small for panels, table rows and menus: smaller tile, title and padding. |
Slots
Name | Slot props | Description |
|---|---|---|
#default | — | Replaces text. |
#actions | — | Buttons under the text. |