KToast

fun KToast(data: KToastData, onClose: () -> Unit, modifier: Modifier = Modifier)(source)

Renders a single toast notification.

Mirrors the individual toast card from shadcn/ui sonner.tsx. Typically not used directly — prefer KToaster + KToastManager.

Toast(
data = KToastData(message = "Saved!", type = KToastType.Success),
onClose = { }
)