mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Add loading card
This commit is contained in:
@@ -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>
|
||||
@@ -99,4 +99,9 @@ abstract class Widget extends Component
|
||||
|
||||
return $properties;
|
||||
}
|
||||
|
||||
public function placeholder(): View
|
||||
{
|
||||
return view('filament::components.loading-card');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user