Package-level declarations

Types

Link copied to clipboard
data class KToastData(val id: Long = Random.nextLong(), val message: String, val description: String? = null, val type: KToastType = KToastType.Default, val actionLabel: String? = null, val onAction: () -> Unit? = null, val durationMs: Long)
Link copied to clipboard

Global toast dispatcher — call from anywhere in your app.

Link copied to clipboard

Functions

Link copied to clipboard
fun KToast(data: KToastData, onClose: () -> Unit, modifier: Modifier = Modifier)

Renders a single toast notification.

Link copied to clipboard
fun KToaster(modifier: Modifier = Modifier, maxVisible: Int = 3, alignment: Alignment = Alignment.BottomCenter)

Places the toast stack in your composable tree.