diff --git a/docs/12-components/02-table.md b/docs/12-components/02-table.md index 4e23636893..7e6aef38f1 100644 --- a/docs/12-components/02-table.md +++ b/docs/12-components/02-table.md @@ -112,7 +112,7 @@ Visit your Livewire component in the browser, and you should see the table. These packages allow you to use their components within Livewire components. For example, if your table uses [Actions](action#setting-up-the-livewire-component), remember to implement the `HasActions` interface and include the `InteractsWithActions` trait. - If you are using any other [Filament components](overview#package-components) in your table, make sure to install and integrate the corresponding package as well. + If you are using any other [Filament components](overview#package-components) in your table, make sure to install and integrate the corresponding package as well. ## Building a table for an Eloquent relationship diff --git a/docs/12-components/02-widget.md b/docs/12-components/02-widget.md index afb16e7276..b705b1619c 100644 --- a/docs/12-components/02-widget.md +++ b/docs/12-components/02-widget.md @@ -12,7 +12,11 @@ import Aside from "@components/Aside.astro" If it's not installed, consult the [installation guide](../introduction/installation#installing-the-individual-components) and configure the **individual components** according to the instructions. -## Introduction +## Creating a widget + +Use the `make:filament-widget` command to generate a new widget. For details on customization and usage, see the [widgets section](../widgets). + +## Adding the widget Since widgets are Livewire components, you can easily render a widget in any Blade view using the `@livewire` directive: @@ -21,3 +25,8 @@ Since widgets are Livewire components, you can easily render a widget in any Bla @livewire(\App\Livewire\Dashboard\PostsChart::class) ``` + +