SnackBarComponent

fun SnackBarComponent(modifier: ERROR CLASS: Symbol not found for Modifier = Modifier, snackBarHostState: ERROR CLASS: Symbol not found for SnackbarHostState, type: SnackBarType = SnackBarType.INFO)

Renders a SnackbarHost whose Snackbar is colored by its semantic type: green for SnackBarType.SUCCESS, red for SnackBarType.ERROR, and MTN blue for SnackBarType.INFO. The action label keeps the MTN yellow accent in all cases for brand consistency.

Parameters

modifier

Modifier applied to the Snackbar.

snackBarHostState

State object that controls snackbar visibility and content.

type

The semantic type of the currently displayed snackbar; drives the background color.