Toast

Notification toasts for feedback messages.

Default

ToastProvider Props

PropTypeDefaultDescription
childrenReactNode—App content.
position"top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center""bottom-right"Toast position.

toast() Options

PropTypeDefaultDescription
titlestring—Toast title.
descriptionstring—Additional message.
variant"default" | "success" | "danger" | "warning"—Toast style.
durationnumber5000Auto-dismiss in ms (0 = persistent).

useToast Return Value

PropTypeDefaultDescription
toast(options) => void—Show a toast notification.
dismiss(id: string) => void—Dismiss a toast by ID.