useToast
Installation
import { useToast } from 'uxp/components';Signature
function useToast(): IToastResultExamples
let toast = useToast();
toast.success("Item has been added");let toast = useToast();
toast.success({title:'Info',content:'Item has been added'});let toast = useToast();
toast.error({title:'Failed!',content:'Failed to add item',closeAfter:5,onClose:()=>{console.log('toast closed')}});With custom icon
```tsx
Custom toast exampleLast updated