© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
5 replies
RuiAlmeida

Opening modal from Livewire Component

I'm trying to open a modal from a livewire compoenent:
    public function createAction(): Action
    {
        return Action::make('create')
            ->form(MenuResource::getFormSchema())
            ->label('Create');

    }
    public function createAction(): Action
    {
        return Action::make('create')
            ->form(MenuResource::getFormSchema())
            ->label('Create');

    }

<div>
    {{ $this->createAction }}
    <x-filament-actions::modals />
</div>
<div>
    {{ $this->createAction }}
    <x-filament-actions::modals />
</div>

This does open the Modal, but without any of the syles from filament.
Any ideas?
Solution
you need to do this if you are using actions outside the panel
https://filamentphp.com/docs/3.x/actions/installation#existing-laravel-projects
Installation - Actions - Filament
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Modal: Livewire component
FilamentFFilament / ❓┊help
2y ago
Calling Action Modal from parent livewire component
FilamentFFilament / ❓┊help
3y ago
Modal Sticky Footer livewire component
FilamentFFilament / ❓┊help
2y ago
Filament table in Modal - livewire component
FilamentFFilament / ❓┊help
2y ago