SnackBarComponent

fun SnackBarComponent(modifier: ERROR CLASS: Symbol not found for Modifier = Modifier, snackBarHostState: ERROR CLASS: Symbol not found for SnackbarHostState, backgroundColorHex: String, actionColorHex: String, contentColorHex: String)

Renders a SnackbarHost with a custom-themed Snackbar whose colors are specified as hex strings.

Parameters

modifier

Modifier applied to the Snackbar.

snackBarHostState

State object that controls snackbar visibility and content.

backgroundColorHex

Hex color string (e.g. "#EB9779") for the snackbar background.

actionColorHex

Hex color string for the action button text.

contentColorHex

Hex color string for the message text.