GenericAlertOptions

data class GenericAlertOptions(val isVisible: Boolean = false, val type: AlertType = AlertType.INFO, val title: String = "", val message: String, val actions: List<AlertAction> = emptyList(), val onClose: () -> Unit? = null, val showCloseButton: Boolean = true, val duration: Long? = null, val position: String = "top-center")

GenericAlert - Flexible alert component for various notification types.

Supports multiple alert types (success, error, warning, info) with customizable actions and icons.

Constructors

Link copied to clipboard
constructor(isVisible: Boolean = false, type: AlertType = AlertType.INFO, title: String = "", message: String, actions: List<AlertAction> = emptyList(), onClose: () -> Unit? = null, showCloseButton: Boolean = true, duration: Long? = null, position: String = "top-center")

Properties

Link copied to clipboard
Link copied to clipboard
val duration: Long? = null
Link copied to clipboard
val isVisible: Boolean = false
Link copied to clipboard
Link copied to clipboard
val onClose: () -> Unit? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard