Toast

From udecode/kitcn · View interactive version

Toast is an AI agent skill from the GitHub repository udecode/kitcn. Toast notifications with Sonner for user feedback. Use for success/error messages, async operation feedback, and temporary notifications. Always use when using Sonner.

How to use this skill

Skill file

Toast Notifications

Context

Requirements

Examples

<example>

// For async operations

const promise = someAsyncOperation();

toast.promise(promise, {

loading: 'Operation in progress...',

success: 'Operation successful!',

error: 'Operation failed.',

});

</example>

<example>

// For immediate notifications

toast.success('Action completed successfully!');

toast.error('An error occurred.');

toast.info('Here's some information.');

</example>

<example type="invalid">

// Don't create custom toast implementations

const showToast = (message) => {

const toastElement = document.createElement('div');

toastElement.innerText = message;

document.body.appendChild(toastElement);

setTimeout(() => toastElement.remove(), 3000);

};

</example>

<example type="invalid">

// Don't use alert() for notifications

alert('Operation successful!');

</example>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.