<div class='type'>Composable Component</div>



Host for `Snackbar`s to be used in `Scaffold` to properly show, hide and dismiss items based on
Material specification and the `hostState`.

<a id='references'></a>



<h2 id="snackbarhost-hoststate-modifier-snackbar">SnackbarHost</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
@Composable
fun SnackbarHost(
    hostState: SnackbarHostState,
    modifier: Modifier = Modifier,
    snackbar: @Composable (SnackbarData) -> Unit = { Snackbar(it) },
)
```


#### Parameters

| | |
| --- | --- |
| hostState | state of this component to read and show `Snackbar`s accordingly |
| modifier | the `Modifier` to be applied to this component |
| snackbar | the instance of the `Snackbar` to be shown at the appropriate time with appearance based on the `SnackbarData` provided as a param |