Download the PHP package mrshanebarron/empty-state without Composer
On this page you can find all versions of the php package mrshanebarron/empty-state. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mrshanebarron/empty-state
More information about mrshanebarron/empty-state
Files in mrshanebarron/empty-state
Download mrshanebarron/empty-state
More information about mrshanebarron/empty-state
Files in mrshanebarron/empty-state
Vendor mrshanebarron
Package empty-state
Short Description Empty state placeholder component for Laravel - supports Livewire and Vue
License MIT
Package empty-state
Short Description Empty state placeholder component for Laravel - supports Livewire and Vue
License MIT
Please rate this library. Is it a good library?
Informations about the package empty-state
Empty State
An empty state placeholder component for Laravel applications. Displays friendly messages when content is missing. Works with Livewire and Vue 3.
Installation
Livewire Usage
Basic Usage
With Icon
With Action Button
Livewire Props
| Prop | Type | Default | Description |
|---|---|---|---|
title |
string | 'No items' |
Main heading |
description |
string | null |
Subtext description |
icon |
string | null |
Icon name/type |
action-text |
string | null |
Button text |
action-url |
string | null |
Button link |
Vue 3 Usage
Setup
Basic Usage
With Icon
With Action
Conditional Rendering
Custom Slot Content
Vue Props
| Prop | Type | Default | Description |
|---|---|---|---|
title |
String | 'No items' |
Heading text |
description |
String | null |
Description text |
icon |
String | null |
Icon identifier |
actionText |
String | null |
Action button text |
actionUrl |
String | null |
Action link URL |
Events
| Event | Description |
|---|---|
action |
Button clicked (when no actionUrl) |
Slots
| Slot | Description |
|---|---|
icon |
Custom icon content |
description |
Custom description content |
action |
Custom action buttons |
Common Use Cases
- Empty search results
- No data in tables
- Empty inbox/notifications
- New user onboarding
- Filtered results with no matches
Styling
Uses Tailwind CSS:
- Centered layout
- Gray icon
- Large title text
- Muted description
- Primary action button
Requirements
- PHP 8.1+
- Laravel 10, 11, or 12
- Tailwind CSS 3.x
License
MIT License
All versions of empty-state with dependencies
PHP Build Version
Package Version
The package mrshanebarron/empty-state contains the following files
Loading the files please wait ...