When to use it
The host owns the tags and removes them in onRemove (value in React Native/Compose, id in SwiftUI).
Apple availability
Import LumenUI in the target that uses this component. iPad support follows the iOS package baseline and uses native iPad layout behavior.
Native example
The host owns the tags and removes them in onRemove (value in React Native/Compose, id in SwiftUI).
import LumenUI
import SwiftUI
struct TagGroupExample: View {
@State private var tags: [LumenTagItem] = [
.init(id: "swift", label: "SwiftUI"),
.init(id: "design", label: "Design systems"),
.init(id: "native", label: "Native", removable: false),
.init(id: "archived", label: "Archived", isDisabled: true)
]
var body: some View {
LumenTagGroup("Project topics", tags: tags, onRemove: { id in
tags.removeAll { $0.id == id }
})
}
}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