AlertDialog
In Material Compose
@Composable
fun NavigationRailItemSample() {
var selected by remember { mutableStateOf(true) }
NavigationRail {
NavigationRailItem(
selected = selected,
onClick = { selected = true },
icon = { Icon(Icons.Filled.Home, contentDescription = "Home") },
label = { Text("Home") },
)
}
}