When to use it
Pin it to the bottom of the list screen while items are selected.
Native example
Pin it to the bottom of the list screen while items are selected.
import androidx.compose.runtime.*
import com.santi020k.lumen.*
@Composable
fun FileSelectionBar() {
var selected by remember { mutableStateOf(setOf("report", "notes", "logo")) }
LumenSelectionBar(
count = selected.size,
onClear = { selected = emptySet() }
) {
LumenButton(
onClick = { selected = emptySet() },
intent = LumenButtonIntent.Secondary,
size = LumenControlSize.Sm
) { LumenText("Archive") }
}
}Reference
The primary shared and platform-specific options exposed by LumenSelectionBar.
| API | Values or type | Default | Description |
|---|---|---|---|
| count / onClear / label | selected items / clear callback / count text | required / none / {count} selected | Pin it to the bottom of the list screen while items are selected. |
Native behavior
Pin it to the bottom of the list screen while items are selected.
Hidden at zero; count changes are announced politely.
Shared component