FocusableSampleUsingLowerLevelFocusTarget
@Composable
fun FocusableSampleUsingLowerLevelFocusTarget() {
var color by remember { mutableStateOf(Black) }
Box(
Modifier.border(2.dp, color)
// The onFocusChanged should be added BEFORE the focusTarget that is being observed.
.onFocusChanged { color = if (it.isFocused) Green else Black }
.focusTarget()
)
}