Unit, navigationIcon: @Composable AppBarIconScope.() -> Unit, ) @Stable class AppBarIconScope { @Composable fun BackButton(back: () - > Unit, modifier: Modifier = Modifier) { IconButton(onClick = back, modifier = modifier) { Icon( painter = painterResource(id = R.drawable.ic_back), contentDescription = null, ) } } } AppBar( title = { Text("Title") }, navigationIcon = { BackButton(back = { /* .. . * / }) }, ) AppBar( title = { Text("Title") }, navigationIcon = { IconButton( /* . .. */ ) { Icon( /* ... * / ) } }, )