BackButton

fun BackButton(painter: Painter, onBackPressed: () -> Unit, modifier: Modifier = Modifier)

Basic back button, that shows an icon and calls onBackPressed when tapped.

Parameters

painter

The icon or image to show.

onBackPressed

Handler for the back action.

modifier

Modifier for styling.