Components / Toast

Trigger Types

Programmatically invoke toast notifications with semantic intents and custom actions.

useToast() API

Prop / EventTypeDefaultDescription
titlestring''The main heading text of the toast.
descriptionstring''Secondary descriptive text below the title.
intentstring'default'The visual semantic intent: 'default', 'success', 'warning', 'danger', or 'info'.
iconComponentundefinedA Vue component (like a Lucide icon) to render alongside the text.
durationnumber4000Time in milliseconds before the toast auto-dismisses.
actionobjectundefinedAn object containing { label: string, onClick: Function } to render an action button.