Package-level declarations

Types

Link copied to clipboard
data class KwikToastState(val id: UUID = UUID.randomUUID(), val message: String = "", val type: KwikToastType = KwikToastType.NEUTRAL, val isVisible: Boolean = false, val duration: Long = 4000, val backgroundColor: Color = Color.Unspecified)

The state of the toast.

Link copied to clipboard

Functions

Link copied to clipboard
fun KwikToast(state: MutableState<KwikToastState>, modifier: Modifier = Modifier)

A modern toast component that can be used to display messages to the user.

Link copied to clipboard

A state holder for the toast. Refer to KwikToastState

Link copied to clipboard
fun MutableState<KwikToastState>.showToast(message: String, type: KwikToastType = KwikToastType.NEUTRAL, duration: Long = 4000, backgroundColor: Color = Color.Unspecified)

Function to show a toast message.