© 2026 Hedgehog Software, LLC

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

Hide modal heading without hiding cross

My table has a button called "Profile" which opens a modal. I want the modal to have all my own custom content (from components.person-profile) so I'm hiding the boilerplate heading. But this seems to also hide the cross close button in the top right of the modal.

Is there a way to do this so the cross remains?

Action::make('Profile')
                    ->modalHeading('') // removes close button
                    ->modalContent(fn (Person $record): View => view(
                        'components.person-profile',
                        [
                            'person' => $record,
                        ],
                    )),
Action::make('Profile')
                    ->modalHeading('') // removes close button
                    ->modalContent(fn (Person $record): View => view(
                        'components.person-profile',
                        [
                            'person' => $record,
                        ],
                    )),
Solution
Looks like the close button only exists inside the header.

As a work around you can add your own close button in the modal content view with
x-on:click=“close()”
x-on:click=“close()”
and it should work the same.
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Update Modal Heading
FilamentFFilament / ❓┊help
3y ago
Modal Heading on Delete function
FilamentFFilament / ❓┊help
14mo ago
Save without closing modal
FilamentFFilament / ❓┊help
8mo ago
Modal opened without Action
FilamentFFilament / ❓┊help
10mo ago