Stack Navigation
A stack navigator behaves like a regular stack of destinations. Navigating to a new screen will place a new entry at the top of the stack, and navigating back will pop that destination from the stack.
The default navigator returned from rememberNavigator is a stack navigator, but you can optionally pass NavConfig.Stack explicitly:
val stackNavigator = rememberNavigator(NavConfig.Stack)
The ModalStack example here demonstrates basic usage of a stack navigator.