chipgroup
README.md
Chip Group
OCChipGroup is a flexible chip component tailored for Jetpack Compose, designed to organize different types of chips - Choice, Input, Action, and Filter. It offers customization through its parameters, allowing users to modify its appearance and behavior.
How to use
-
Add the necessary imports:
import your.package.name.OCChipGroup
-
Create OCChipGroup of your choice
val chipDataList: List<ChipData> = listOf(
ChipData(id = "1", "One"),
ChipData(id = "2", "Two", isSelected = true),
ChipData(id = "3", "Three"),
ChipData(id = "4", "Four"),
ChipData(id = "5", "Five", isSelected = true)
)
OCChipGroup(
chipDataList = chipDataList,
chipType = Choice,
isSingleSelection = false,
onChipClicked = {},
onClickCloseButton = {}
)