jantinnerezo / livewire-alert

SweetAlert2 wrapper for Livewire
https://livewire-alert.jantinnerezo.com
MIT License
682 stars 73 forks source link

HTML content instead of text and title #152

Open matheusgabardo opened 1 month ago

matheusgabardo commented 1 month ago

It would be interesting if we could pass a string containing HTML to be used instead of title+text An example being called directly from the controller:

this->alert([
        'icon', 'error', 
        'html', '<p>Error!<br/> Try again later.</p>'
        'position' => 'center',
        'timer' => 5000,
        'toast' => true,
        'width' => 350,
]);