navComponent

fun navComponent(navController: NavHostController, modifier: Modifier = Modifier, fabActionVisible: Boolean = false, fabResetAction: () -> Unit = {})

Composable function for setting up the navigation component.

Parameters

navController

The NavHostController responsible for navigation.

modifier

The modifier for the NavHost composable.

fabActionVisible

Whether the Floating Action Button (FAB) action is visible.

fabResetAction

The action to perform when the FAB reset action is triggered.