vwf .

API Reference

Complete API documentation for components, utilities, and framework core

Toast

Temporary notification messages

⚡ Methods

MethodParametersDescription
showToast(message, type, duration?)Display a toast notification

💻 Examples

Toast Notifications

return Button({
  class: 'vwfcolor-sky solid',
  onclick: () => showToast('Success!', 'success')
}, 'Show Success Toast');

▶️ Live Preview

💡 Click "Edit Code" to modify the example

🔄 Click "Apply Changes" to see your modifications

↩️ Click "Reset" to restore original code

💡 Usage Tips

• Import showToast from Toast.js to display notifications

• Toast auto-dismisses after 3 seconds by default

• Stack multiple toasts automatically

• Use semantic types: success, error, warning, info

🔗 Related

Explore vwf

Discover what vwf can do