Feedback
Empty
An empty state: an icon, a title, a description and actions, centered, for a list, a grid of cards or a search with nothing to show.
Nothing to show
An inbox icon in muted gray and "No records found" in bold under it, at the size of body text, centered in the space with some padding.
With a description and actions #
The search icon, the title, the description in muted text and the button under them, all centered in a box with a dashed border and rounded corners, which marks the area the list would fill.
No patients found
Nothing to show
In place of a list #
The cards when there are patients; the empty box when the collection is empty, also after a Livewire update empties it.
Ana Souza
Bruno Reis
Nothing to show
Plain, inside another box #
Only the title, smaller, centered in the card, with no icon.
Nothing to show
Border and size #
border takes dashed, dotted or solid (none by default); size sets the icon, text and padding.
Dotted
Solid
Dashed
Nothing to show
Customization #
container: reaches the box; icon:, title: and description: each part.
Nothing here
Nothing to show
Reference
Empty
| Prop | Type | Default | Description |
|---|---|---|---|
title |
string | slot | No records found |
The title in bold, one size below size (body text at md), translated. An empty title shows the default. |
description |
string | slot | array | null |
Muted text under the title, translated. An array renders as a list (list: prefix). |
icon |
string | slot | false | mdi:inbox-outline |
An icon above the title, three sizes larger than size, in muted gray. false removes it. |
border |
bool | string | false |
dashed, dotted, solid or true (solid) draws a rounded border around it. |
size |
string | md |
xs, sm, md, lg, xl, 2xl or 3xl. Sets the icon, text, padding, corners and spacing. |
actions |
slot | null |
Buttons or links under the texts. |
tk:empty
Slots
| Slot | Description |
|---|---|
| default | Content under the description, in the text style. |
actions |
Content under the texts, in a row. |
Prefixes
| Prefix | Goes to |
|---|---|
container: |
The box (container:class="bg-white"). |
icon: |
The icon (icon:size="sm", icon:class="text-red-500"). |
title: |
The title, a <p>; title:level="2" makes it an <h2>, and title:size sets its size apart from size. |
description: |
The description (description:variant="strong"). |
list: |
The list a description array renders. |
actions: |
The element wrapping the actions. |
Customization
Classes and attributes on tk:empty go to the block holding the icon and texts; the box itself and each part take prefixes (listed in the Reference above).
Nothing to show
Accessibility
The icon is hidden from screen readers, and the title and description are read as plain text. The title is not a heading: give it title:level when it should be one in the page outline. The box has no live region, so a screen reader does not announce it when a Livewire update shows it; add role="status" on the tag when it should.