Update 02-modal.md

This commit is contained in:
Dan Harrin
2024-08-08 08:25:36 +03:00
committed by GitHub
parent 2520688cf6
commit 42ad8d2ace
@@ -207,13 +207,14 @@ By default, when you press escape on a modal, it will close itself. If you wish
## Hiding the modal close button
By default, modals with a heading have a close button in the top right corner. You can remove the close button from the modal by using the `close-button` attribute:
By default, modals with a header have a close button in the top right corner. You can remove the close button from the modal by using the `close-button` attribute:
```blade
<x-filament::modal :close-button="false">
<x-slot name="heading">
Modal heading
</x-slot>
{{-- Modal content --}}
</x-filament::modal>
```