@php use Filament\Support\Enums\IconSize; use Filament\Support\View\Components\SectionComponent\IconComponent; @endphp @props([ 'description' => null, 'footer' => null, 'heading', 'headingTag' => 'h2', 'icon' => null, 'iconColor' => 'primary', 'iconSize' => null, ]) @php if (filled($iconSize) && (! $iconSize instanceof IconSize)) { $iconSize = IconSize::tryFrom($iconSize) ?? $iconSize; } $hasDescription = filled((string) $description); $hasIcon = filled($icon); @endphp
class([ 'fi-empty-state', ]) }} >
@if ($hasIcon)
$iconColor !== 'gray', ]) > {{ \Filament\Support\generate_icon_html($icon, attributes: (new \Illuminate\View\ComponentAttributeBag) ->color(IconComponent::class, $iconColor), size: $iconSize ?? IconSize::Large) }}
@endif <{{ $headingTag }} class="fi-empty-state-heading"> {{ $heading }} @if ($hasDescription)

{{ $description }}

@endif