kor TürkçeGitHub

Toast

Shows brief feedback and can offer an action.

kor/ui/ToastSource

When to use

  • Acknowledge a completed action or let the user undo it immediately.

Examples

Save feedback

Loading the example

<k:Button text="Save the note" press=".onSave"/>

Undo an archive

Loading the example

<k:Stack gap="8">
	<k:Text text="{/status}"/>
	<k:Button text="Archive order" press=".onArchive"/>
</k:Stack>

API

Methods

NameDescription
show(title: string, options: ToastOptions = {}): voidShows a notification and can attach an action button
type ToastOptions = { text?: string; state?: string; duration?: number; actionText?: string; action?: () => void };

Related

MessageConfirm