StylishToastHost

fun StylishToastHost(hostState: StylishToastHostState, modifier: Modifier = Modifier, shape: Shape = RoundedCornerShape(DefaultStylishDimensions.connectedCornerRadius), containerColor: Color = MaterialTheme.colorScheme.inverseSurface, contentColor: Color = MaterialTheme.colorScheme.inverseOnSurface)

A stackable toast display — the web "Toast/Message/Notification" pattern from shadcn/ui, Sonner, Ant Design, and Chakra UI.

Composes the toasts of hostState at the bottom of its content box. Newest toasts appear above older ones. Each toast auto-dismisses after its StylishToastData.durationMillis and can carry an action button.

Parameters

hostState

The toast stack state.

modifier

Modifier applied to the root box (fill the parent to anchor toasts at the bottom edge).

shape

Corner shape of each toast. Defaults to RoundedCornerShape with DefaultStylishDimensions.connectedCornerRadius.

containerColor

Background of each toast. Defaults to the inverse surface.

contentColor

Foreground of each toast. Defaults to the inverse on-surface.