Using a custom Livewire component in place of a form (v3)

Is it possible to replace the default modal form that opens from a relation manager with a custom Livewire component that interacts with the data? This would be within a Filament v3 admin panel, not a separate app. The docs mention adding Filament components to Livewire components, but not the other way around.
5 Replies
awcodes
awcodes12mo ago
Create a view. Create a LW component. put the LW component’s directive in the view. Then put the view in the ->modalContent() of a custom action. Sounds more difficult than it actually is. Lol.
richeklein
richeklein12mo ago
Thanks! I'm finding that a lot with Filament, since I'm new. The surface area of features in v3 is huge, but it's making more sense as I use it. I'm looking forward to making more documentation contributions as I gain more experience. I assume the view is just a standard Blade view?
awcodes
awcodes12mo ago
yep
awcodes
awcodes12mo ago
Should be a custom action though. I wouldn't try to do it with one of the pre built actions.