NavButton

@Composable
fun BoxScope.NavButton(modifier: Modifier = Modifier, icon: ImageVector, alignment: Alignment, onClick: () -> Unit)

A composable function that creates a navigation button with an icon.

Parameters

modifier

The modifier to be applied to the IconButton, test tag need is added here.

icon

The icon to be displayed inside the button.

alignment

The alignment of the button within its parent BoxScope.

onClick

The callback to be invoked when the button is clicked.