call livewire component from view::make()

Is it possible to call a livewire componet from wizard view component. Something like: Forms\Components\View::make(@livewire('livewire-component-name'))
7 Replies
Patrick Boivin
Patrick Boivin15mo ago
The View component takes a Blade view, so usually you would need a wrapper:
Forms\Components\View::make('my-component-wrapper')
Forms\Components\View::make('my-component-wrapper')
@livewire('my-component')
@livewire('my-component')
You can extend the View to make your own LivewireView and abstract this, if you're doing it often.
.najibahmed
.najibahmedOP15mo ago
I've done this working but tailwindcss style is not working
Patrick Boivin
Patrick Boivin15mo ago
What is the issue with Tailwind?
.najibahmed
.najibahmedOP15mo ago
I compiled tailwindcss and its classes are not reflected in the livewire blade form. I've manually included the app.css and works but this double the page load and break the filament panel style.
Patrick Boivin
Patrick Boivin15mo ago
You can keep the original look of Filament, this just means that you can take control of the Tailwind configuration and add utilities, plugins, etc.
.najibahmed
.najibahmedOP15mo ago
Temporarly solution. I've imported the page style. Thanks @pboivin
Want results from more Discord servers?
Add your server