ChipTagView

fun ChipTagView(modifier: Modifier, title: String, textColor: Color, isIconShow: Boolean = false, iconUrl: String = String.empty(), iconResource: Int = 0, iconTintColor: Color = Color.White, modifierIcon: Modifier = Modifier.padding(8.dp, 6.dp, 12.dp, 6.dp))

Author: @Jeluchu

This component is similar to the Chips, in which you can display a text or a text and an icon

Parameters

modifier

modifier that will be used to change the color, size...

title

text to be displayed on the chip

textColor

color of the text to be displayed inside the chip

isIconShow

in case you want to show an icon or not (by default it is deactivated)

iconUrl

link of the image you want to be displayed as an icon on the chip

iconResource

drawable id of the resource you want to be displayed as an icon on the chip

iconTintColor

color of the icon (only if iconResource is being used) displayed on the chip

modifierIcon

custom modifier for the displayed icon (currently there is a default padding)

Samples

ChipTagViewPreview