inertiajs / inertia-laravel

The Laravel adapter for Inertia.js.
https://inertiajs.com
MIT License
2.08k stars 234 forks source link

Feature Request : Modals Classes Prop Merge #506

Closed prezire closed 1 year ago

prezire commented 1 year ago

It would be nice to have a mergeable classes prop for both Modal and ConfirmationModal. I was thinking of having something like this to align them vertically, for example:

<Modal classes="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" :show="showModal" @close="showModal = false">
    <div class="p-3">
      Hello World
    </div>
</Modal>

Please let me know if there's a better way to do this.

jeffreyvanhees commented 1 year ago

As far as I know Modal and ConformationModal has nothing to do with this package. Maybe a package like https://github.com/dcastil/tailwind-merge can help you.

jessarcher commented 1 year ago

Hi there,

Thanks for reporting the problem you are encountering, but it looks like this is a question that may be better suited for a support channel. We only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use the functionality provided by this repository, you can try one of the following channels:

However, this issue will not be locked, and everyone is free to discuss solutions to your problem!