Toast / Snackbar
How to use
<p class="ar-mt-2 ar-text-gray-600">Click the buttons to trigger toast notifications.</p>
<div class="ar-docs-block ar-flex ar-flex-wrap ar-gap-3 ar-mt-4">
<button class="ar-btn" onclick="ARStyle.toast('This is a default toast.')">Default</button>
<button class="ar-btn" onclick="ARStyle.toast('Changes saved!', {type:'success', icon:'✓'})">Success</button>
<button class="ar-btn" onclick="ARStyle.toast('Check this info.', {type:'info', icon:'ℹ'})">Info</button>
<button class="ar-btn" onclick="ARStyle.toast('Warning message!', {type:'warning', icon:'⚠'})">Warning</button>
<button class="ar-btn" onclick="ARStyle.toast('Something went wrong.', {type:'error', icon:'✗'})">Error</button>
<button class="ar-btn" onclick="ARStyle.toast('Persistent toast', {duration:0, position:'bottom-left'})">No Auto-close</button>
</div>Click the buttons to trigger toast notifications.