<script src="https://beginner.korvali.net/t/toast.js"></script>
| Attribute | Status | Description & Behavior |
|---|---|---|
| toast-data | Required |
The text message to display in the toast badge (e.g., toast-data="Testing text successfully copied!"). Can be attached to any HTML element (button, link, div, etc.). |
toast-data to any clickable element.<!-- 1. Include Korvali Toast Script -->
<script src="https://beginner.korvali.net/t/toast.js"></script>
<!-- 2. Attach toast-data attribute to any button -->
<button toast-data="Testing text successfully copied!">
Copy Text
</button>