how can i use spinner in compose
# compose
p
how can i use spinner in compose
a
Copy code
CircularProgressIndicator()
p
not progress bar, i meant the drop down icon, which let's you choose from values, like the android xml spinner
a
Copy code
Box(modifier = modifier.align(Alignment.TopEnd)) {
    DropdownMenu(
        expanded = showMenu,
        modifier = Modifier
            .widthIn(min = 120.dp)
            .shadow(elevation = 4.dp)
            .background(color = colors.whiteBackground, shape = RoundedCornerShape(size = 8.dp)),
        onDismissRequest = {
            onShowMenu(false)
        },
    ) {
// content
}}
p
thanks
👍 1