Android components Advanced
StanceSearchableList
BetaA search field over a filtered list with a result count and empty state.
- PlatformAndroid, Jetpack Compose
- Builds on
LazyColumn - Kindcomposable
Preview
Rendered by the Jetpack Compose library, not drawn by hand.






Usage
val people = listOf("Amara Okafor", "Lukas Brenner", "Priya Nair")
StanceSearchableList(
items = people,
matches = { person, query -> person.contains(query, ignoreCase = true) },
placeholder = "Search users",
modifier = Modifier.height(StanceSpacing.space24 * 3),
) { person ->
StanceListItem(person, leading = { StanceAvatar(person) })
}Accessibility
- The result count is announced as people type.