mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
1.2 KiB
1.2 KiB
title
| title |
|---|
| Rendering a widget in a Blade view |
import Aside from "@components/Aside.astro"
Creating a widget
Use the make:filament-widget command to generate a new widget. For details on customization and usage, see the widgets section.
Adding the widget
Since widgets are Livewire components, you can easily render a widget in any Blade view using the @livewire directive:
<div>
@livewire(\App\Livewire\Dashboard\PostsChart::class)
</div>