StylishSnackbarHost

fun StylishSnackbarHost(hostState: SnackbarHostState, modifier: Modifier = Modifier, shape: Shape = RoundedCornerShape(StylishTheme.dimensions.connectedCornerRadius), containerColor: Color = MaterialTheme.colorScheme.inverseSurface, contentColor: Color = MaterialTheme.colorScheme.inverseOnSurface, actionColor: Color = MaterialTheme.colorScheme.inversePrimary)

A SnackbarHost that renders each snackbar with StylishSnackbar. Place this inside a com.segnities007.stylishui.components.patterns.StylishScaffold's snackbarHost slot.

Parameters

hostState

The SnackbarHostState that queues snackbar messages.

modifier

Modifier applied to the host.

shape

Corner shape forwarded to StylishSnackbar.

containerColor

Background color forwarded to StylishSnackbar.

contentColor

Content color forwarded to StylishSnackbar.

actionColor

Action color forwarded to StylishSnackbar.

See also