Tag

fun Tag(modifier: Modifier = Modifier, title: String, colors: TagColors = TagDefaults.tagColors(), shape: Shape = RoundedCornerShape(4.dp), style: TextStyle = MaterialTheme.typography.bodyLarge.copy(fontWeight = FontWeight.Bold), navigateToScreen: () -> Unit = {})

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

colors

color of the text and background

shape

type of shape desired for this chip

style

style of text to be displayed

navigateToScreen

action to be performed after pressing

Samples

TagPreview