Package-level declarations

Types

Link copied to clipboard
data class ToastAction(val label: String, val onClick: () -> Unit)
Link copied to clipboard
data class ToastAppearance(val backgroundColor: Color? = null, val borderColor: Color? = null, val borderWidth: Dp? = null, val iconBackgroundColor: Color? = null, val iconForegroundColor: Color? = null, val titleColor: Color? = null, val messageColor: Color? = null, val actionBackgroundColor: Color? = null, val actionContentColor: Color? = null, val shadowColor: Color? = null, val glassScrimColor: Color? = null, val hostBackgroundColor: Color? = null, val shape: ToastShapeOverride? = null, val contentPadding: PaddingValues? = null, val elevation: Dp? = null)

Optional per-toast overrides; null fields fall back to ToastTheme + state palette.

Link copied to clipboard
data class ToastConfig(val id: String = "", val title: String? = null, val message: String? = null, val type: ToastType = ToastType.Info, val style: ToastStyle = ToastStyle.Gradient, val showIcon: Boolean = true, val showClose: Boolean = false, val durationSec: Int = 3, val autoDismiss: Boolean = true, val position: ToastPosition? = null, val fullWidth: Boolean? = null, val enterAnimation: ToastEnterAnimation? = null, val action: ToastAction? = null, val appearance: ToastAppearance? = null, val iconContent: @Composable (ToastType) -> Unit? = null, val onToastClick: () -> Unit? = null, val onDismiss: () -> Unit? = null)
Link copied to clipboard

Vertical motion for toast enter/exit.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed class ToastShapeOverride
Link copied to clipboard
sealed class ToastStyle

Visual layout families aligned with ToastX reference designs.

Link copied to clipboard

Semantic toast category — drives palette, icon, and pastel “glow” shadow color.

Link copied to clipboard
object ToastX

Properties

Link copied to clipboard

Bottom row positions span the full width of the toast slot (edge-to-edge within host padding).