When to use it
The host owns the tags and removes them in onRemove (value in React Native/Compose, id in SwiftUI).
Native example
The host owns the tags and removes them in onRemove (value in React Native/Compose, id in SwiftUI).
import androidx.compose.runtime.*
import com.santi020k.lumen.*
@Composable
fun ProjectFilters() {
var tags by remember {
mutableStateOf(listOf(LumenTag("design", "Design"), LumenTag("mobile", "Mobile"), LumenTag("planned", "Planned")))
}
LumenTagGroup(
label = "Project filters",
tags = tags,
onRemove = { value -> tags = tags.filterNot { it.value == value } }
)
}Reference
The primary shared and platform-specific options exposed by LumenTagGroup.
| API | Values or type | Default | Description |
|---|---|---|---|
| tags / onRemove / removeLabel | tags / removal callback / remove button name | required / none / Remove {label} | The host owns the tags and removes them in onRemove (value in React Native/Compose, id in SwiftUI). |
Native behavior
The host owns the tags and removes them in onRemove (value in React Native/Compose, id in SwiftUI).
Named group; remove buttons are named, and focus moves to a remaining removable tag or the group after removal.
Shared component