Skip to main content
The Empty State component is used to display a helpful message when there’s no data to show. It combines an illustration, title, description, and an optional call-to-action button.

Preview

No products yetGet started by creating your first product. Products are the items you sell in your store.

Usage

Props

title
string
required
The main heading text for the empty state.
content
string
required
Descriptive text explaining the empty state and what action can be taken.
button
string | false
default:"false"
Text for the call-to-action button. Set to false to hide the button.
permission
string | false
default:"false"
Permission name required to show the button. Uses Laravel’s @can directive.
url
string | false
default:"false"
URL for the button link. Use this for navigation to a create page.
panel
string | null
default:"null"
Panel name to dispatch an event for opening a slide-over or modal. Alternative to url.

Examples

Basic Empty State

No orders foundWhen customers place orders, they will appear here.

With URL Action

With Panel Action

Use a panel action to open a slide-over or modal instead of navigating:

Without Button

When you don’t want to show an action button:
No reviews yetReviews will appear here once customers start leaving feedback on their purchases.

Custom Slot Content

The default slot is used for the illustration on the left side:

Usage in Livewire Components

Empty states are typically rendered conditionally when a collection is empty:

Blade Component Source

The Empty State component is located at packages/admin/resources/views/components/empty-state.blade.php: