Add loading card

This commit is contained in:
Dan Harrin
2023-07-29 12:14:14 +01:00
parent a0ea80424b
commit d2ebdb4792
3 changed files with 17 additions and 0 deletions
@@ -554,4 +554,9 @@ class RelationManager extends Component implements Forms\Contracts\HasForms, Tab
$this->pageClass,
];
}
public function placeholder(): View
{
return view('filament::components.loading-card');
}
}
@@ -0,0 +1,7 @@
<x-filament::card class="flex items-center justify-center">
<div
class="flex h-16 w-16 items-center justify-center rounded-full bg-primary-50 text-primary-500 dark:bg-gray-700"
>
<x-filament::loading-indicator class="h-6 w-6" />
</div>
</x-filament::card>
+5
View File
@@ -99,4 +99,9 @@ abstract class Widget extends Component
return $properties;
}
public function placeholder(): View
{
return view('filament::components.loading-card');
}
}