Preview
No products yetGet started by creating your first product. Products are the items you sell in your store.
Usage
Props
string
required
The main heading text for the empty state.
string
required
Descriptive text explaining the empty state and what action can be taken.
string | false
default:"false"
Text for the call-to-action button. Set to
false to hide the button.string | false
default:"false"
Permission name required to show the button. Uses Laravel’s
@can directive.string | false
default:"false"
URL for the button link. Use this for navigation to a create page.
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 atpackages/admin/resources/views/components/empty-state.blade.php: