Tag
Tag is used to classify and link to content.
Parameters
Text label.
Modifier to be applied to the layout of the component.
Colors of choice for the component background.
Optional leading icon.
Optional trailing counter label.
The MutableInteractionSource representing the stream of Interactions for this component.
optional click action.
See also
Samples
SkapaTheme2(isSystemInDarkTheme()) {
Column {
Tag(label = "Label", color = TagColor.Default) {}
Tag(label = "Label + icon", color = TagColor.Default, iconResource = R.drawable.ic_avatar_person) {}
Tag(label = "Label + counter", color = TagColor.Default, counter = "8") {}
Tag(label = "Label + icon + counter", color = TagColor.Default, iconResource = R.drawable.ic_avatar_person, counter = "8") {}
}
}Tag is used to classify and link to content.
Parameters
Text label.
Modifier to be applied to the layout of the component.
Colors of choice for the component background.
Optional leading icon.
Whether the icon should be tinted or not by default to the color. Should only be set to false for multicolored icons. Will in this case use Color.Unspecified.
Optional trailing counter label.
The MutableInteractionSource representing the stream of Interactions for this component.
optional click action.
See also
Samples
SkapaTheme2(isSystemInDarkTheme()) {
Column {
Tag(label = "Label", color = TagColor.Default) {}
Tag(label = "Label + icon", color = TagColor.Default, iconResource = R.drawable.ic_avatar_person) {}
Tag(label = "Label + counter", color = TagColor.Default, counter = "8") {}
Tag(label = "Label + icon + counter", color = TagColor.Default, iconResource = R.drawable.ic_avatar_person, counter = "8") {}
}
}