Accessibility hint - Jetpack Compose

In Jetpack Compose, you can use contentDescription parameter inside semantics modifier block to set a hint.

For the TextField composable, you can use the placeholder parameter to set a hint.

// Set hint for a Button
Button(
    onClick = { /*Handle button click*/ },
    modifier = Modifier.semantics { contentDescription = "Opens the Appt website" }
) {
    // Button content...
}

// Set hint for a TextField
TextField(
    value = "",
    onValueChange = { /* State update logic */ },
    placeholder = { Text("Opens the Appt website") }
)