Load custom LW component

Hi! I'm using Form Builder to just create a layout in Filament Page. Is this the correct way to display custom Livewire component?
Card::make()
->schema([
Placeholder::make('Cart')
->content(new HtmlString(Blade::render('@livewire(\'cart-component\')')))
])
Card::make()
->schema([
Placeholder::make('Cart')
->content(new HtmlString(Blade::render('@livewire(\'cart-component\')')))
])
3 Replies
toeknee
toeknee2y ago
It certainly works and isn't a bad way. You could do: ->view('cart-component') if you have the blade component setup for the livewire element.
LeandroFerreira
Filament
Fields - Form Builder - Filament
The elegant TALL stack form builder for Laravel artisans.
adic1040
adic1040OP2y ago
It does work, just wondered is it ok to do it like this. Thank you!
Want results from more Discord servers?
Add your server