F
success
Shows a success toast titled by a message key, with a check icon.
function success<K extends keyof Messages>(key: K, ...args: MessageArgs<K, [options?: ToastShorthandOptions]>): ToastHandleParameters
| Name | Type | Description |
|---|---|---|
| key | K | The message key. |
| ...args | MessageArgs<K, [options?: ToastShorthandOptions]> | The key's placeholder values when it has placeholders, then optional |
Returns
ToastHandleA ToastHandle for controlling the shown toast.