Select Toast Types:
Code:
import showToast from 'https://unpkg.com/toast-for-web@1.0.4/dist/index.js'
const btnToaster = document.getElementById("btn-toaster")
btnToaster.addEventListener('click', () => {
const time = document.getElementById("time-input").value
const toastType = document.querySelector('input[name="toast-type"]:checked').value
showToast("Successfully Done", "success", 3000)
})