Empty State
Placeholder displays for empty content areas. Includes icon, title, description, and an optional call-to-action button.
Default
No workshops found
<?= ws_empty_state('No workshops found') ?>With Description
No workshops found
Try adjusting your search or filters to find what you are looking for.
<?= ws_empty_state('No workshops found', [
'description' => 'Try adjusting your search or filters.',
]) ?>With Action
<?= ws_empty_state('No workshops found', [
'icon' => 'search_off',
'action' => 'Browse All Workshops',
'actionHref' => '/library/workshops/',
]) ?>Custom Icons
No saved items
Save workshops for quick access.
No notifications
You are all caught up.
API Reference
| Param | Type | Default | Description |
|---|---|---|---|
$title | string | required | Empty state heading |
description | string | null | Supporting text |
icon | string | 'inbox' | Material icon name |
action | string | null | CTA button text |
actionHref | string | null | CTA button URL |
actionVariant | string | 'primary' | Button variant |
id | string | null | Element ID |
class | string | '' | Additional CSS classes |