Read Only Tag
fun ReadOnlyTag(text: String, modifier: Modifier = Modifier, icon: @Composable () -> Painter? = null, type: TagType = TagType.Gray, size: TagSize = TagSize.Medium)
Tag - Read-only
Tags are components that are often used to label different items, create categorization, filter data, select or deselect options, and include functionality to disclose several related tags in another view.
Read-only tags have no interactive functionality and are commonly used for categorizing and labeling.
Accessibility note: Read-only tags are not interactive and do not receive focus.
(From Tag documentation)`
Parameters
text
The text to be displayed in the tag.
modifier
The modifier to be applied to the tag.
icon
The icon to be displayed in the tag. Defaults to null. The lambda signature ensures stability across recompositions.
type
The type of the tag. The tag type can be referred to the tag color. Defaults to TagType.Gray.
size
The size of the tag. Defaults to TagSize.Small.