OverlayDestination

inline fun <Route : NavRoute> OverlayDestination(noinline content: @Composable (Route) -> Unit): NavDestination<Route>

Creates a new NavDestination that is shown on top a ScreenDestination, for example a dialog or bottom sheet. The class of Route will be used as a unique identifier. The given content will be shown inside the dialog window when navigating to it by using an instance of Route.