wire-elements / modal

Livewire component that provides you with a modal that supports multiple child modals while maintaining state.
MIT License
1.09k stars 129 forks source link

Question: What is the best way to add an X/close button to modal #393

Closed mansoorkhan96 closed 7 months ago

mansoorkhan96 commented 7 months ago

I am trying to add a custom X button to modal. I have tried to publish the view and add the button using absolute css but there is a glitch and the button appears before the modal itself.

So I am wonder, if there is any other way to inject an X button to modal. May be a slot that allows you to do it.

Here is the wireframe i am building on top of.

Thanks

image